Interface PathElement3ai
-
- All Superinterfaces:
Cloneable,PathElement3D,Serializable
- All Known Implementing Classes:
PathElement3i,PathElement3i.ClosePathElement3i,PathElement3i.CurvePathElement3i,PathElement3i.LinePathElement3i,PathElement3i.MovePathElement3i,PathElement3i.QuadPathElement3i,PathElement3ifx,PathElement3ifx.ClosePathElement3ifx,PathElement3ifx.CurvePathElement3ifx,PathElement3ifx.LinePathElement2ifx,PathElement3ifx.MovePathElement3ifx,PathElement3ifx.QuadPathElement3ifx
public interface PathElement3ai 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 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.intgetCtrlZ1()Replies the z coordinate of the first control point.intgetCtrlZ2()Replies the z coordinate of the second control point.intgetFromX()Replies the x coordinate of the starting point.intgetFromY()Replies the y coordinate of the starting point.intgetFromZ()Replies the z coordinate of the starting point.intgetToX()Replies the x coordinate of the target point.intgetToY()Replies the y coordinate of the target point.intgetToZ()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 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.
-
getFromZ
@Pure int getFromZ()
Replies the z coordinate of the starting point.- Returns:
- the z 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.
-
getCtrlZ1
@Pure int getCtrlZ1()
Replies the z coordinate of the first control point.- Returns:
- the z 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.
-
getCtrlZ2
@Pure int getCtrlZ2()
Replies the z coordinate of the second control point.- Returns:
- the z 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.
-
getToZ
@Pure int 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.
-
-