- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.i.PathElement3i
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement3ai,PathElement3D
- Direct Known Subclasses:
PathElement3i.ClosePathElement3i,PathElement3i.CurvePathElement3i,PathElement3i.LinePathElement3i,PathElement3i.MovePathElement3i,PathElement3i.QuadPathElement3i
public abstract class PathElement3i extends Object implements PathElement3ai
An element of the path with 2 integer numbers.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPathElement3i.ClosePathElement3iAn element of the path that represents aCLOSE.(package private) static classPathElement3i.CurvePathElement3iAn element of the path that represents aCURVE_TO.(package private) static classPathElement3i.LinePathElement3iAn element of the path that represents aLINE_TO.(package private) static classPathElement3i.MovePathElement3iAn element of the path that represents aMOVE_TO.(package private) static classPathElement3i.QuadPathElement3iAn element of the path that represents aQUAD_TO.
-
Field Summary
Fields Modifier and Type Field Description protected inttoXTarget point.protected inttoYTarget point.protected inttoZTarget point.protected PathElementTypetypeType of the element.
-
Constructor Summary
Constructors Constructor Description PathElement3i(PathElementType type, int tox, int toy, int toz)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(Object obj)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.abstract inthashCode()abstract int[]toArray()Copy the coords into an array, except the source point.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.PathElement3ai
getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getCtrlZ1, getCtrlZ2, getFromX, getFromY, getFromZ, toArray, toArray
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.PathElement3D
isDrawable, isEmpty
-
-
-
-
Field Detail
-
type
protected final PathElementType type
Type of the element.
-
toX
protected final int toX
Target point.
-
toY
protected final int toY
Target point.
-
toZ
protected final int toZ
Target point.
-
-
Constructor Detail
-
PathElement3i
PathElement3i(PathElementType type, int tox, int toy, int toz)
Constructor.- Parameters:
type- is the type of the element.tox- the x coordinate of the target point.toy- the x coordinate of the target point.toz- the z coordinate of the target point.
-
-
Method Detail
-
getToX
@Pure public final int getToX()
Description copied from interface:PathElement3aiReplies the x coordinate of the target point.- Specified by:
getToXin interfacePathElement3ai- Returns:
- the x coordinate.
-
getToY
@Pure public final int getToY()
Description copied from interface:PathElement3aiReplies the y coordinate of the target point.- Specified by:
getToYin interfacePathElement3ai- Returns:
- the y coordinate.
-
getToZ
@Pure public final int getToZ()
Description copied from interface:PathElement3aiReplies the z coordinate of the target point.- Specified by:
getToZin interfacePathElement3ai- Returns:
- the z coordinate.
-
getType
@Pure public final PathElementType getType()
Description copied from interface:PathElement3DReplies the type of the element.- Specified by:
getTypein interfacePathElement3ai- Specified by:
getTypein interfacePathElement3D- Returns:
trueif the points are the same; otherwisefalse.
-
toArray
@Pure public abstract int[] toArray()
Copy the coords into an array, except the source point.- Returns:
- the array of the points, except the source point.
-
-