Interface PathElement2ai
-
- All Superinterfaces:
Cloneable,PathElement2D,Serializable
- All Known Implementing Classes:
PathElement2i,PathElement2i.ArcPathElement2i,PathElement2i.ClosePathElement2i,PathElement2i.CurvePathElement2i,PathElement2i.LinePathElement2i,PathElement2i.MovePathElement2i,PathElement2i.QuadPathElement2i,PathElement2ifx,PathElement2ifx.ArcPathElement2ifx,PathElement2ifx.ClosePathElement2ifx,PathElement2ifx.CurvePathElement2ifx,PathElement2ifx.LinePathElement2ifx,PathElement2ifx.MovePathElement2ifx,PathElement2ifx.QuadPathElement2ifx
public interface PathElement2ai 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 intgetCtrlX1()Replies the x coordinate of the first control point.intgetCtrlX2()Replies the x coordinate of the second control point.intgetCtrlY1()Replies the y coordinate of the first control point.intgetCtrlY2()Replies the y coordinate of the second control point.intgetFromX()Replies the x coordinate of the starting point.intgetFromY()Replies the y coordinate of the starting point.booleangetLargeArcFlag()Replies if the arc-to will sweep clockwise around the ellipse.intgetRadiusX()Replies the x radius of the arc-to ellipse.intgetRadiusY()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.intgetToX()Replies the x coordinate of the target point.intgetToY()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 int getFromX()
Replies the x coordinate of the starting point.- Returns:
- the x coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO.
-
getFromY
@Pure int getFromY()
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO.
-
getCtrlX1
@Pure int getCtrlX1()
Replies the x coordinate of the first control point.- Returns:
- the x coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
getCtrlY1
@Pure int getCtrlY1()
Replies the y coordinate of the first control point.- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
getCtrlX2
@Pure int getCtrlX2()
Replies the x coordinate of the second control point.- Returns:
- the x coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
getCtrlY2
@Pure int getCtrlY2()
Replies the y coordinate of the second control point.- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
getToX
@Pure int getToX()
Replies the x coordinate of the target point.- Returns:
- the x coordinate.
-
getToY
@Pure int 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 int getRadiusX()
Replies the x radius of the arc-to ellipse.- Returns:
- the x radius, or
0if the type is notPathElementType.ARC_TO.
-
getRadiusY
@Pure int 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.
-
-