|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.map.track.LineTrack.Position
public class LineTrack.Position
A position on this track.
Constructor Summary | |
---|---|
LineTrack.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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineTrack.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 double move(double dist)
move
in interface TrackPosition
dist
- the distance
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |