Interface PathElement2afp
-
- All Superinterfaces:
Cloneable
,PathElement2D
,Serializable
- All Known Implementing Classes:
PathElement2d
,PathElement2d.ArcPathElement2d
,PathElement2d.ClosePathElement2d
,PathElement2d.CurvePathElement2d
,PathElement2d.LinePathElement2d
,PathElement2d.MovePathElement2d
,PathElement2d.QuadPathElement2d
,PathElement2dfx
,PathElement2dfx.ArcPathElement2dfx
,PathElement2dfx.ClosePathElement2dfx
,PathElement2dfx.CurvePathElement2dfx
,PathElement2dfx.LinePathElement2dfx
,PathElement2dfx.MovePathElement2dfx
,PathElement2dfx.QuadPathElement2dfx
public interface PathElement2afp extends PathElement2D
An element of the path.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getCtrlX1()
Replies the x coordinate of the first control point.double
getCtrlX2()
Replies the x coordinate of the second control point.double
getCtrlY1()
Replies the y coordinate of the first control point.double
getCtrlY2()
Replies the y coordinate of the second control point.double
getFromX()
Replies the x coordinate of the starting point.double
getFromY()
Replies the y coordinate of the starting point.boolean
getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.double
getRadiusX()
Replies the x radius of the arc-to ellipse.double
getRadiusY()
Replies the y radius of the arc-to ellipse.double
getRotationX()
Replies the rotation of the x axis of the arc-to ellipse.boolean
getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.double
getToX()
Replies the x coordinate of the target point.double
getToY()
Replies the y coordinate of the target point.PathElementType
getType()
Replies the type of the element.void
toArray(double[] array)
Copy the coords into the given array, except the source point.void
toArray(int[] array)
Copy the coords into the given array, except the source point.-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.PathElement2D
isDrawable, isEmpty
-
-
-
-
Method Detail
-
getFromX
@Pure double getFromX()
Replies the x coordinate of the starting point.- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
.
-
getFromY
@Pure double getFromY()
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
.
-
getCtrlX1
@Pure double getCtrlX1()
Replies the x coordinate of the first control point.- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlY1
@Pure double getCtrlY1()
Replies the y coordinate of the first control point.- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlX2
@Pure double getCtrlX2()
Replies the x coordinate of the second control point.- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getCtrlY2
@Pure double getCtrlY2()
Replies the y coordinate of the second control point.- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getToX
@Pure double getToX()
Replies the x coordinate of the target point.- Returns:
- the x coordinate.
-
getToY
@Pure double getToY()
Replies the y coordinate of the target point.- Returns:
- the y coordinate.
-
getType
@Pure PathElementType getType()
Description copied from interface:PathElement2D
Replies the type of the element.- Specified by:
getType
in interfacePathElement2D
- Returns:
true
if the points are the same; otherwisefalse
.
-
toArray
@Pure void toArray(int[] array)
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
toArray
@Pure void toArray(double[] array)
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
getRadiusX
@Pure double getRadiusX()
Replies the x radius of the arc-to ellipse.- Returns:
- the x radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRadiusY
@Pure double getRadiusY()
Replies the y radius of the arc-to ellipse.- Returns:
- the y radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRotationX
@Pure double getRotationX()
Replies the rotation of the x axis of the arc-to ellipse.- Returns:
- the x axis rotation, or
0
if the type is notPathElementType.ARC_TO
.
-
getSweepFlag
@Pure boolean getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
getLargeArcFlag
@Pure boolean getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
-