aim4.map.track

## Interface Track

- All Known Implementing Classes:
    ArcTrack, LineTrack, PathTrack

      public interface Track

  The interface of track segments.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

- - ### Method Detail

    - #### getStartWayPoint

          WayPoint getStartWayPoint()

      Get the starting waypoint of the track segment.
      Returns:
        the starting waypoint

    - #### getEndWayPoint

          WayPoint getEndWayPoint()

      Get the ending waypoint of the track segment.
      Returns:
        the ending waypoint

    - #### getLength

          double getLength()

      Get the length of the track.
      Returns:
        the length of the track.

    - #### getPosition

          TrackPosition getPosition(double dist)

      Get the position on the track that is a given distance from the starting waypoint. It returns null if the position is off the track (i.e., beyond the ending waypoint.)
      Parameters:
        `dist` - the distance from the starting waypoint; null if the distance is longer than the length of the track.

    - #### getShape

          Shape getShape()

      Get the shape of the track segment
      Returns:
        the shape of the track segment

Copyright © 2013. All rights reserved.