|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.map.track.PathTrack.Position
public class PathTrack.Position
A position on the track.
Constructor Summary | |
---|---|
PathTrack.Position(double dist)
Create a position object at the given distance from the starting waypoint on this track |
Method Summary | |
---|---|
double |
getTangentSlope()
Get the slope of the tangent at the location. |
double |
getX()
Get the x-coordinate of the current position. |
double |
getY()
Get the y-coordinate of the current position. |
double |
move(double dist)
Move the position by a certain distance on the track but not beyond the end waypoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathTrack.Position(double dist)
dist
- the distanceMethod Detail |
---|
public double getX()
getX
in interface TrackPosition
public double getY()
getY
in interface TrackPosition
public double getTangentSlope()
getTangentSlope
in interface TrackPosition
public final double move(double dist)
move
in interface TrackPosition
dist
- the distance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |