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 doublegetCtrlX1()Replies the x coordinate of the first control point.doublegetCtrlX2()Replies the x coordinate of the second control point.doublegetCtrlY1()Replies the y coordinate of the first control point.doublegetCtrlY2()Replies the y coordinate of the second control point.doublegetFromX()Replies the x coordinate of the starting point.doublegetFromY()Replies the y coordinate of the starting point.booleangetLargeArcFlag()Replies if the arc-to will sweep clockwise around the ellipse.doublegetRadiusX()Replies the x radius of the arc-to ellipse.doublegetRadiusY()Replies the y radius of the arc-to ellipse.doublegetRotationX()Replies the rotation of the x axis of the arc-to ellipse.booleangetSweepFlag()Replies if the arc-to will sweep the long way around the ellipse.doublegetToX()Replies the x coordinate of the target point.doublegetToY()Replies the y coordinate of the target point.PathElementTypegetType()Replies the type of the element.voidtoArray(double[] array)Copy the coords into the given array, except the source point.voidtoArray(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
0if the type isPathElementType.MOVE_TO.
-
getFromY
@Pure double getFromY()
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getCtrlX1
@Pure double getCtrlX1()
Replies the x coordinate of the first control point.- Returns:
- the x coordinate, or
0if 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
0if 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
0if 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
0if 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:PathElement2DReplies the type of the element.- Specified by:
getTypein interfacePathElement2D- Returns:
trueif 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
0if the type is notPathElementType.ARC_TO.
-
getRadiusY
@Pure double getRadiusY()
Replies the y radius of the arc-to ellipse.- Returns:
- the y radius, or
0if 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
0if the type is notPathElementType.ARC_TO.
-
getSweepFlag
@Pure boolean getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.- Returns:
trueiff the element will sweep clockwise around the ellipse, or0if the type is notPathElementType.ARC_TO.
-
getLargeArcFlag
@Pure boolean getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.- Returns:
trueiff the element will sweep clockwise around the ellipse, or0if the type is notPathElementType.ARC_TO.
-
-