|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.map.track.LineTrack
public class LineTrack
A track segment that is a straight line
Nested Class Summary | |
---|---|
class |
LineTrack.Position
A position on this track. |
Constructor Summary | |
---|---|
LineTrack(WayPoint p1,
WayPoint p2)
Create a track segment that is a straight line |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineTrack(WayPoint p1, WayPoint p2)
p1
- the starting pointp2
- the ending pointMethod Detail |
---|
public WayPoint getStartWayPoint()
getStartWayPoint
in interface Track
public WayPoint getEndWayPoint()
getEndWayPoint
in interface Track
public double getLength()
getLength
in interface Track
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.public Shape getShape()
getShape
in interface Track
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |