| Modifier and Type | Class and Description |
|---|---|
class |
LineTrack.Position
A position on this track.
|
| Constructor and Description |
|---|
LineTrack(WayPoint p1,
WayPoint p2)
Create a track segment that is a straight line
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public WayPoint getStartWayPoint()
getStartWayPoint in interface Trackpublic WayPoint getEndWayPoint()
getEndWayPoint in interface Trackpublic double getLength()
public TrackPosition getPosition(double dist)
getPosition in interface Trackdist - the distance from the starting waypoint; null if the
distance is longer than the length of the track.Copyright © 2013. All rights reserved.