Class PathElement3d.MovePathElement3d
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.d.PathElement3d
-
- org.arakhne.afc.math.geometry.d3.d.PathElement3d.MovePathElement3d
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement3afp,PathElement3D
- Enclosing class:
- PathElement3d
static class PathElement3d.MovePathElement3d extends PathElement3d
An element of the path that represents aMOVE_TO.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND, Thomas PIOTROWSKI
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.arakhne.afc.math.geometry.d3.d.PathElement3d
PathElement3d.ClosePathElement3d, PathElement3d.CurvePathElement3d, PathElement3d.LinePathElement3d, PathElement3d.MovePathElement3d, PathElement3d.QuadPathElement3d
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.d.PathElement3d
toX, toY, toZ, type
-
-
Constructor Summary
Constructors Constructor Description MovePathElement3d(double tox, double toy, double toz)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.inthashCode()booleanisDrawable()Replies if the element is not empty and is drawable.booleanisEmpty()Replies if the element is empty, ie. the points are the same.double[]toArray()Copy the coords into an array, except the source point.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.
-
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equalsin classPathElement3d
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classPathElement3d
-
isEmpty
@Pure public boolean isEmpty()
Description copied from interface:PathElement3DReplies if the element is empty, ie. the points are the same.- Returns:
trueif the points are the same; otherwisefalse.
-
isDrawable
@Pure public boolean isDrawable()
Description copied from interface:PathElement3DReplies if the element is not empty and is drawable.Only the path elements that may produce pixels on the screen must reply
truein this function.- Returns:
trueif the path element is drawable; otherwisefalse.
-
toArray
public void toArray(int[] array)
Description copied from interface:PathElement3afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
public void toArray(double[] array)
Description copied from interface:PathElement3afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public double[] toArray()
Description copied from class:PathElement3dCopy the coords into an array, except the source point.- Specified by:
toArrayin classPathElement3d- Returns:
- the array of the points, except the source point.
-
getFromX
public double getFromX()
Description copied from interface:PathElement3afpReplies the x coordinate of the starting point.- Returns:
- the x coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getFromY
public double getFromY()
Description copied from interface:PathElement3afpReplies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getFromZ
public double getFromZ()
Description copied from interface:PathElement3afpReplies the z coordinate of the starting point.- Returns:
- the z coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getCtrlX1
public double getCtrlX1()
Description copied from interface:PathElement3afpReplies 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
public double getCtrlY1()
Description copied from interface:PathElement3afpReplies 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
public double getCtrlZ1()
Description copied from interface:PathElement3afpReplies 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
public double getCtrlX2()
Description copied from interface:PathElement3afpReplies 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
public double getCtrlY2()
Description copied from interface:PathElement3afpReplies 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
public double getCtrlZ2()
Description copied from interface:PathElement3afpReplies 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.
-
-