| Modifier and Type | Class and Description |
|---|---|
class |
ArcTrack.Position
A position of the arc-shape track.
|
| Constructor and Description |
|---|
ArcTrack(WayPoint p1,
WayPoint p2,
Point2D center,
boolean isClockwiseDirection)
Create an arc-shape track segment.
|
| 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.