- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.i.AbstractShape3i<Path3i>
-
- org.arakhne.afc.math.geometry.d3.i.Path3i
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Path3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
,Shape3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
,Shape3i<Path3i>
,Path3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
,Shape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
,JsonableObject
public class Path3i extends AbstractShape3i<Path3i> implements Path3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
Path with 2 integer numbers.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d3.ai.Path3ai
Path3ai.AbstractPathIterator<E extends PathElement3ai>, Path3ai.FlatteningPathIterator<E extends PathElement3ai>, Path3ai.PathPathIterator<E extends PathElement3ai>, Path3ai.PixelIterator<P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>>, Path3ai.PointCollection<P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>>, Path3ai.PointIterator<P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>>, Path3ai.PrivateAPI, Path3ai.TransformedPathIterator<E extends PathElement3ai>
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d3.Path3D
Path3D.ArcType
-
-
Field Summary
-
Fields inherited from interface org.arakhne.afc.math.geometry.d3.ai.Path3ai
DEFAULT_FLATTENING_LIMIT, DEFAULT_WINDING_RULE, GROW_SIZE
-
-
Constructor Summary
Constructors Constructor Description Path3i()
Construct an empty path.Path3i(Iterator<PathElement3i> iterator)
Construct a path by copying the given elements.Path3i(Path3ai<?,?,?,?,?,?> path)
Constructor by copy.Path3i(PathWindingRule windingRule)
Construct an empty path with the given path winding rule.Path3i(PathWindingRule windingRule, Iterator<PathElement3i> iterator)
Construct a path with the given path winding rule and by copying the given elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Reset this shape to be equivalent to an just-created instance of this shape type.Path3i
clone()
Clone this shape.void
closePath()
Closes the current subpath by drawing a straight line back to the coordinates of the lastmoveTo
.boolean
containsControlPoint(Point3D<?,?> point)
Replies if the given points exists in the coordinates of this path.void
curveTo(int x1, int y1, int z1, int x2, int y2, int z2, int x3, int y3, int z3)
Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates(x3,y3)
, using the specified points(x1,y1)
and(x2,y2)
as Bézier control points.int
getCoordAt(int index)
Replies the coordinate at the given index.int
getCurrentX()
Replies the x coordinate of the last point in the path.int
getCurrentY()
Replies the x coordinate of the last point in the path.int
getCurrentZ()
Replies the z coordinate of the last point in the path.int
getPathElementCount()
Replies the number of path elements in this path.PathElementType
getPathElementTypeAt(int index)
Replies the type of the path element at the given position in this path.Point3i
getPointAt(int index)
Replies the point at the given index.PathWindingRule
getWindingRule()
Replies the winding rule for the path.int
hashCode()
boolean
isCurved()
Replies the path contains a curve..boolean
isEmpty()
Replies if this shape is empty.boolean
isMultiParts()
Replies the path has multiple parts, i.e. multipleMOVE_TO
are inside.boolean
isPolygon()
Replies the path is composed only by oneMOVE_TO
, a sequence ofLINE_TO
orQUAD_TO
orCURVE_TO
, and a singleCLOSE
primitives.boolean
isPolyline()
Replies the path is composed only by oneMOVE_TO
, and a sequence ofLINE_TO
primitives.void
lineTo(int x, int y, int z)
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision.void
moveTo(int x, int y, int z)
Adds a point to the path by moving to the specified coordinates specified in double precision.void
quadTo(int x1, int y1, int z1, int x2, int y2, int z2)
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates(x2,y2)
, using the specified point(x1,y1)
as a quadratic parametric control point.boolean
remove(int x, int y, int z)
Remove the point with the given coordinates.void
removeLast()
Remove the last action.void
set(Path3i path)
Set this shape with the attributes of the given shape.void
setLastPoint(int x, int y, int z)
Change the coordinates of the last inserted point.void
setWindingRule(PathWindingRule rule)
Set the winding rule for the path.int
size()
Replies the number of points in the path.RectangularPrism3i
toBoundingBox()
Replies the bounding box of this shape.void
toBoundingBox(RectangularPrism3i box)
Replies the bounds of the shape.RectangularPrism3i
toBoundingBoxWithCtrlPoints()
Replies the bounding box of all the points added in this path.void
toBoundingBoxWithCtrlPoints(RectangularPrism3i box)
Compute the bounding box of all the points added in this path.double[]
toDoubleArray(Transform3D transform)
Replies the coordinates of this path in an array of double precision floating-point numbers.float[]
toFloatArray(Transform3D transform)
Replies the coordinates of this path in an array of single precision floating-point numbers.int[]
toIntArray(Transform3D transform)
Replies the coordinates of this path in an array of integer numbers.Point3i[]
toPointArray(Transform3D transform)
Replies the points of this path in an array.void
transform(Transform3D transform)
Transform the current path.void
translate(int dx, int dy, int dz)
Translate the shape.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.i.AbstractShape3i
addShapeGeometryChangeListener, equals, fireGeometryChange, getGeomFactory, removeShapeGeometryChangeListener, toJson, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.Path3ai
add, contains, contains, curveTo, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getCurrentPoint, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getLengthSquared, getPathIterator, getPathIterator, getPointIterator, intersects, intersects, intersects, intersects, intersects, lineTo, moveTo, quadTo, set, setLastPoint, toCollection
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Path3D
getLength, toDoubleArray, toFloatArray, toIntArray, toPointArray
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.Shape3ai
contains, contains, createTransformedShape, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Shape3D
equalsToPathIterator, getDistance, getDistance, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
-
-
-
Constructor Detail
-
Path3i
public Path3i()
Construct an empty path.
-
Path3i
public Path3i(Iterator<PathElement3i> iterator)
Construct a path by copying the given elements.- Parameters:
iterator
- the iterator that provides the elements to copy.
-
Path3i
public Path3i(PathWindingRule windingRule)
Construct an empty path with the given path winding rule.- Parameters:
windingRule
- the path winding rule.
-
Path3i
public Path3i(PathWindingRule windingRule, Iterator<PathElement3i> iterator)
Construct a path with the given path winding rule and by copying the given elements.- Parameters:
windingRule
- the path winding rule.iterator
- the iterator that provides the elements to copy.
-
Path3i
public Path3i(Path3ai<?,?,?,?,?,?> path)
Constructor by copy.- Parameters:
path
- the path to copy.
-
-
Method Detail
-
containsControlPoint
@Pure public boolean containsControlPoint(Point3D<?,?> point)
Description copied from interface:Path3D
Replies if the given points exists in the coordinates of this path.- Specified by:
containsControlPoint
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
point
- the point.- Returns:
true
if the point is a control point of the path.
-
clear
public void clear()
Description copied from interface:Shape3D
Reset this shape to be equivalent to an just-created instance of this shape type.- Specified by:
clear
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
-
clone
@Pure public Path3i clone()
Description copied from interface:Shape3D
Clone this shape.- Specified by:
clone
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Overrides:
clone
in classAbstractShape3i<Path3i>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape3i<Path3i>
-
translate
public void translate(int dx, int dy, int dz)
Description copied from interface:Shape3ai
Translate the shape.- Specified by:
translate
in interfaceShape3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
dx
- x translation.dy
- y translation.dz
- z translation.
-
transform
public void transform(Transform3D transform)
Description copied from interface:Path3ai
Transform the current path. This function changes the current path.- Specified by:
transform
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
transform
- is the affine transformation to apply.- See Also:
Shape3ai.createTransformedShape(org.arakhne.afc.math.geometry.d3.Transform3D)
-
isEmpty
@Pure public boolean isEmpty()
Description copied from interface:Shape3D
Replies if this shape is empty. The semantic associated to the state "empty" depends on the implemented shape. See the subclasses for details.- Specified by:
isEmpty
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
true
if the shape is empty;false
otherwise.
-
toBoundingBox
@Pure public RectangularPrism3i toBoundingBox()
Description copied from interface:Shape3D
Replies the bounding box of this shape.- Specified by:
toBoundingBox
in interfaceShape3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Specified by:
toBoundingBox
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the bounding box of this shape.
-
toBoundingBox
@Pure public void toBoundingBox(RectangularPrism3i box)
Description copied from interface:Shape3D
Replies the bounds of the shape.- Specified by:
toBoundingBox
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
box
- is set with the bounds of the shape.
-
getWindingRule
@Pure public PathWindingRule getWindingRule()
Description copied from interface:Path3D
Replies the winding rule for the path.- Specified by:
getWindingRule
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the winding rule for the path.
-
isPolyline
@Pure public boolean isPolyline()
Description copied from interface:Path3D
Replies the path is composed only by oneMOVE_TO
, and a sequence ofLINE_TO
primitives.- Specified by:
isPolyline
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
true
if the path does not contain curve primitives,false
otherwise.
-
isCurved
@Pure public boolean isCurved()
Description copied from interface:Path3D
Replies the path contains a curve..- Specified by:
isCurved
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
true
if the path does not contain curve primitives,false
otherwise.
-
isMultiParts
@Pure public boolean isMultiParts()
Description copied from interface:Path3D
Replies the path has multiple parts, i.e. multipleMOVE_TO
are inside. primitives.- Specified by:
isMultiParts
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
true
if the path has multiple move-to primitive,false
otherwise.
-
isPolygon
@Pure public boolean isPolygon()
Description copied from interface:Path3D
Replies the path is composed only by oneMOVE_TO
, a sequence ofLINE_TO
orQUAD_TO
orCURVE_TO
, and a singleCLOSE
primitives.- Specified by:
isPolygon
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
true
if the path does not contain curve primitives,false
otherwise.
-
closePath
public void closePath()
Description copied from interface:Path3D
Closes the current subpath by drawing a straight line back to the coordinates of the lastmoveTo
. If the path is already closed or if the previous coordinates are for amoveTo
then this method has no effect.- Specified by:
closePath
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
-
toBoundingBoxWithCtrlPoints
@Pure public RectangularPrism3i toBoundingBoxWithCtrlPoints()
Description copied from interface:Path3D
Replies the bounding box of all the points added in this path.The replied bounding box includes the (invisible) control points.
- Specified by:
toBoundingBoxWithCtrlPoints
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the bounding box with the control points.
- See Also:
Shape3D.toBoundingBox()
-
toBoundingBoxWithCtrlPoints
@Pure public void toBoundingBoxWithCtrlPoints(RectangularPrism3i box)
Description copied from interface:Path3D
Compute the bounding box of all the points added in this path.The replied bounding box includes the (invisible) control points.
- Specified by:
toBoundingBoxWithCtrlPoints
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
box
- is the rectangle to set with the bounds.- See Also:
Shape3D.toBoundingBox()
-
toIntArray
@Pure public int[] toIntArray(Transform3D transform)
Description copied from interface:Path3D
Replies the coordinates of this path in an array of integer numbers.- Specified by:
toIntArray
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
transform
- is the transformation to apply to all the coordinates.- Returns:
- the coordinates.
-
toFloatArray
@Pure public float[] toFloatArray(Transform3D transform)
Description copied from interface:Path3D
Replies the coordinates of this path in an array of single precision floating-point numbers.- Specified by:
toFloatArray
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
transform
- is the transformation to apply to all the coordinates.- Returns:
- the coordinates.
-
toDoubleArray
@Pure public double[] toDoubleArray(Transform3D transform)
Description copied from interface:Path3D
Replies the coordinates of this path in an array of double precision floating-point numbers.- Specified by:
toDoubleArray
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
transform
- is the transformation to apply to all the coordinates.- Returns:
- the coordinates.
-
toPointArray
@Pure public Point3i[] toPointArray(Transform3D transform)
Description copied from interface:Path3D
Replies the points of this path in an array.- Specified by:
toPointArray
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
transform
- is the transformation to apply to all the points.- Returns:
- the points.
-
getPointAt
@Pure public Point3i getPointAt(int index)
Description copied from interface:Path3D
Replies the point at the given index. The index is in [0;Path3D.size()
).- Specified by:
getPointAt
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
index
- the index.- Returns:
- the point at the given index.
-
getCurrentX
@Pure public int getCurrentX()
Description copied from interface:Path3ai
Replies the x coordinate of the last point in the path.- Specified by:
getCurrentX
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the x coordinate of the last point in the path.
-
getCurrentY
@Pure public int getCurrentY()
Description copied from interface:Path3ai
Replies the x coordinate of the last point in the path.- Specified by:
getCurrentY
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the x coordinate of the last point in the path.
-
getCurrentZ
@Pure public int getCurrentZ()
Description copied from interface:Path3ai
Replies the z coordinate of the last point in the path.- Specified by:
getCurrentZ
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the z coordinate of the last point in the path.
-
size
@Pure public int size()
Description copied from interface:Path3D
Replies the number of points in the path.- Specified by:
size
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the number of points in the path.
-
removeLast
public void removeLast()
Description copied from interface:Path3D
Remove the last action.- Specified by:
removeLast
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
-
moveTo
public void moveTo(int x, int y, int z)
Description copied from interface:Path3ai
Adds a point to the path by moving to the specified coordinates specified in double precision.- Specified by:
moveTo
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x
- the specified X coordinatey
- the specified Y coordinatez
- the specified Y coordinate
-
lineTo
public void lineTo(int x, int y, int z)
Description copied from interface:Path3ai
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision.- Specified by:
lineTo
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x
- the specified X coordinatey
- the specified Y coordinatez
- the specified Y coordinate
-
quadTo
public void quadTo(int x1, int y1, int z1, int x2, int y2, int z2)
Description copied from interface:Path3ai
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates(x2,y2)
, using the specified point(x1,y1)
as a quadratic parametric control point. All coordinates are specified in double precision.- Specified by:
quadTo
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x1
- the X coordinate of the quadratic control pointy1
- the Y coordinate of the quadratic control pointz1
- the Z coordinate of the quadratic control pointx2
- the X coordinate of the final end pointy2
- the Y coordinate of the final end pointz2
- the Z coordinate of the final end point
-
curveTo
public void curveTo(int x1, int y1, int z1, int x2, int y2, int z2, int x3, int y3, int z3)
Description copied from interface:Path3ai
Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates(x3,y3)
, using the specified points(x1,y1)
and(x2,y2)
as Bézier control points. All coordinates are specified in double precision.- Specified by:
curveTo
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x1
- the X coordinate of the first Bézier control pointy1
- the Y coordinate of the first Bézier control pointz1
- the Z coordinate of the first Bézier control pointx2
- the X coordinate of the second Bézier control pointy2
- the Y coordinate of the second Bézier control pointz2
- the Z coordinate of the second Bézier control pointx3
- the X coordinate of the final end pointy3
- the Y coordinate of the final end pointz3
- the Z coordinate of the final end point
-
getCoordAt
@Pure public int getCoordAt(int index)
Description copied from interface:Path3ai
Replies the coordinate at the given index. The index is in [0;Path3D.size()
*3).- Specified by:
getCoordAt
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
index
- the index- Returns:
- the coordinate at the given index.
-
setLastPoint
public void setLastPoint(int x, int y, int z)
Description copied from interface:Path3ai
Change the coordinates of the last inserted point.- Specified by:
setLastPoint
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x
- the new x coordinate of the last point.y
- the new y coordinate of the last point.z
- the new z coordinate of the last point.
-
setWindingRule
public void setWindingRule(PathWindingRule rule)
Description copied from interface:Path3D
Set the winding rule for the path.- Specified by:
setWindingRule
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
rule
- is the winding rule for the path.
-
remove
public boolean remove(int x, int y, int z)
Description copied from interface:Path3ai
Remove the point with the given coordinates.If the given coordinates do not match exactly a point in the path, nothing is removed.
- Specified by:
remove
in interfacePath3ai<Shape3i<?>,Path3i,PathElement3i,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
x
- the x coordinate of the point to remove.y
- the y coordinate of the point to remove.z
- the z coordinate of the point to remove.- Returns:
true
if the point was removed;false
otherwise.
-
set
public void set(Path3i path)
Description copied from interface:Shape3D
Set this shape with the attributes of the given shape.- Specified by:
set
in interfaceShape3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
path
- the shape.
-
getPathElementCount
@Pure public int getPathElementCount()
Description copied from interface:Path3D
Replies the number of path elements in this path.- Specified by:
getPathElementCount
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Returns:
- the number of path elements.
- See Also:
Path3D.getPathElementTypeAt(int)
-
getPathElementTypeAt
@Pure public PathElementType getPathElementTypeAt(int index)
Description copied from interface:Path3D
Replies the type of the path element at the given position in this path.- Specified by:
getPathElementTypeAt
in interfacePath3D<Shape3i<?>,Path3i,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>
- Parameters:
index
- the index of the path element.- Returns:
- the type of the path element.
- See Also:
Path3D.getPathElementCount()
-
-