Interface Path
- All Superinterfaces:
Iterable<PathPosition>
- All Known Implementing Classes:
PathImpl
A Path is a sequence of positions that represents a path through a 3D space. The positions are
ordered such that the first position is the start of the path and the last position is the end of
the path. The path may contain additional positions between the start and end positions.
- See Also:
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
length
int length()The length of the Path compiled from the number of positions- Returns:
- the length of the path
-
getStart
PathPosition getStart()Returns the start position of the path- Returns:
PathPositionThe position of the start
-
getEnd
PathPosition getEnd()Returns the target position of the path- Returns:
PathPositionThe position of the target
-
collect
Collection<PathPosition> collect()Returns a new Collection of the Path Positions of the path.- Returns:
Collectionof the PathPositions
-