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 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
getCtrlZ1()
Replies the z coordinate of the first control point.double
getCtrlZ2()
Replies the z 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.double
getFromZ()
Replies the z coordinate of the starting point.double
getToX()
Replies the x coordinate of the target point.double
getToY()
Replies the y coordinate of the target point.double
getToZ()
Replies the z 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.d3.PathElement3D
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
.
-
getFromZ
@Pure double getFromZ()
Replies the z coordinate of the starting point.- Returns:
- the z 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
.
-
getCtrlZ1
@Pure double getCtrlZ1()
Replies the z coordinate of the first control point.- Returns:
- the z 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
.
-
getCtrlZ2
@Pure double getCtrlZ2()
Replies the z coordinate of the second control point.- Returns:
- the z 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.
-
getToZ
@Pure double getToZ()
Replies the z coordinate of the target point.- Returns:
- the z coordinate.
-
getType
@Pure PathElementType getType()
Description copied from interface:PathElement3D
Replies the type of the element.- Specified by:
getType
in interfacePathElement3D
- 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.
-
-