Modifier and Type | Class and Description |
---|---|
class |
PathTrack.Position
A position on the track.
|
Constructor and Description |
---|
PathTrack()
Create an empty path track.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Track track)
Add a track to the path track.
|
void |
append(PathTrack track)
Append a path track to the end of this path track.
|
WayPoint |
getEndWayPoint()
Get the ending waypoint of the track segment.
|
double |
getLength()
Get the length of the track.
|
TrackPosition |
getPosition(double dist)
Get the position on the track that is a given distance from
the starting waypoint.
|
Shape |
getShape()
Get the shape of the track segment
|
WayPoint |
getStartWayPoint()
Get the starting waypoint of the track segment.
|
List<Track> |
getTracks()
Get the list of tracks that constitutes this path track.
|
public void add(Track track)
track
- the trackpublic void append(PathTrack track)
track
- the path trackpublic List<Track> getTracks()
public WayPoint getStartWayPoint()
getStartWayPoint
in interface Track
public WayPoint getEndWayPoint()
getEndWayPoint
in interface Track
public double getLength()
public TrackPosition getPosition(double dist)
getPosition
in interface Track
dist
- the distance from the starting waypoint; null if the
distance is longer than the length of the track.Copyright © 2013. All rights reserved.