- 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 class
PathElement3i.ClosePathElement3i
An element of the path that represents aCLOSE
.(package private) static class
PathElement3i.CurvePathElement3i
An element of the path that represents aCURVE_TO
.(package private) static class
PathElement3i.LinePathElement3i
An element of the path that represents aLINE_TO
.(package private) static class
PathElement3i.MovePathElement3i
An element of the path that represents aMOVE_TO
.(package private) static class
PathElement3i.QuadPathElement3i
An element of the path that represents aQUAD_TO
.
-
Field Summary
Fields Modifier and Type Field Description protected int
toX
Target point.protected int
toY
Target point.protected int
toZ
Target point.protected PathElementType
type
Type 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 boolean
equals(Object obj)
int
getToX()
Replies the x coordinate of the target point.int
getToY()
Replies the y coordinate of the target point.int
getToZ()
Replies the z coordinate of the target point.PathElementType
getType()
Replies the type of the element.abstract int
hashCode()
abstract int[]
toArray()
Copy the coords into an array, except the source point.String
toString()
-
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:PathElement3ai
Replies the x coordinate of the target point.- Specified by:
getToX
in interfacePathElement3ai
- Returns:
- the x coordinate.
-
getToY
@Pure public final int getToY()
Description copied from interface:PathElement3ai
Replies the y coordinate of the target point.- Specified by:
getToY
in interfacePathElement3ai
- Returns:
- the y coordinate.
-
getToZ
@Pure public final int getToZ()
Description copied from interface:PathElement3ai
Replies the z coordinate of the target point.- Specified by:
getToZ
in interfacePathElement3ai
- Returns:
- the z coordinate.
-
getType
@Pure public final PathElementType getType()
Description copied from interface:PathElement3D
Replies the type of the element.- Specified by:
getType
in interfacePathElement3ai
- Specified by:
getType
in interfacePathElement3D
- Returns:
true
if 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.
-
-