Interface PathElement3afp
-
- All Superinterfaces:
Cloneable,PathElement3D,Serializable
- All Known Implementing Classes:
PathElement3d,PathElement3d.ClosePathElement3d,PathElement3d.CurvePathElement3d,PathElement3d.LinePathElement3d,PathElement3d.MovePathElement3d,PathElement3d.QuadPathElement3d,PathElement3dfx,PathElement3dfx.ClosePathElement3dfx,PathElement3dfx.CurvePathElement3dfx,PathElement3dfx.LinePathElement3dfx,PathElement3dfx.MovePathElement3dfx,PathElement3dfx.QuadPathElement3dfx
public interface PathElement3afp extends PathElement3D
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.doublegetCtrlZ1()Replies the z coordinate of the first control point.doublegetCtrlZ2()Replies the z coordinate of the second control point.doublegetFromX()Replies the x coordinate of the starting point.doublegetFromY()Replies the y coordinate of the starting point.doublegetFromZ()Replies the z coordinate of the starting point.doublegetToX()Replies the x coordinate of the target point.doublegetToY()Replies the y coordinate of the target point.doublegetToZ()Replies the z 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.d3.PathElement3D
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.
-
getFromZ
@Pure double getFromZ()
Replies the z coordinate of the starting point.- Returns:
- the z 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.
-
getCtrlZ1
@Pure double getCtrlZ1()
Replies the z coordinate of the first control point.- Returns:
- the z 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.
-
getCtrlZ2
@Pure double getCtrlZ2()
Replies the z coordinate of the second control point.- Returns:
- the z 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.
-
getToZ
@Pure double getToZ()
Replies the z coordinate of the target point.- Returns:
- the z coordinate.
-
getType
@Pure PathElementType getType()
Description copied from interface:PathElement3DReplies the type of the element.- Specified by:
getTypein interfacePathElement3D- 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.
-
-