public class ArcTrack.Position extends Object implements TrackPosition
| Constructor and Description |
|---|
ArcTrack.Position(double dist)
Create a position object at the given distance from the starting
waypoint on this track
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public ArcTrack.Position(double dist)
dist - the distancepublic 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 distanceCopyright © 2013. All rights reserved.