|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.map.track.ArcTrack
public class ArcTrack
The arc-shape track.
Nested Class Summary | |
---|---|
class |
ArcTrack.Position
A position of the arc-shape track. |
Constructor Summary | |
---|---|
ArcTrack(WayPoint p1,
WayPoint p2,
Point2D center,
boolean isClockwiseDirection)
Create an arc-shape track segment. |
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 ArcTrack(WayPoint p1, WayPoint p2, Point2D center, boolean isClockwiseDirection)
p1
- the starting pointp2
- the ending pointcenter
- the center of the arcisClockwiseDirection
- whether the arc should draw in the clockwise
directionMethod 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 |