|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.map.track.ArcTrack.Position
public class ArcTrack.Position
A position of the arc-shape track.
| Constructor Summary | |
|---|---|
ArcTrack.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 ArcTrack.Position(double dist)
dist - the distance| Method Detail |
|---|
public double getX()
getX in interface TrackPositionpublic double getY()
getY in interface TrackPositionpublic double getTangentSlope()
getTangentSlope in interface TrackPositionpublic double move(double dist)
move in interface TrackPositiondist - 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 | |||||||||