aim4.map.track

## Interface TrackPosition

- All Known Implementing Classes:
    ArcTrack.Position, LineTrack.Position, PathTrack.Position

      public interface TrackPosition

  A position on a track.

- - ### Method Summary

    Methods
    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.

- - ### Method Detail

    - #### getX

          double getX()

      Get the x-coordinate of the current position.
      Returns:
        the x-coordinate of the current position.

    - #### getY

          double getY()

      Get the y-coordinate of the current position.
      Returns:
        the y-coordinate of the current position.

    - #### getTangentSlope

          double getTangentSlope()

      Get the slope of the tangent at the location.
      Returns:
        The slope of the tangent at the location.

    - #### move

          double move(double dist)

      Move the position by a certain distance on the track but not beyond the end waypoint. Return the remaining distance if it moves beyond the end waypoint.
      Parameters:
        `dist` - the distance
      Returns:
        the remaining distance of the traversal; exactly 0 (that can be tested with "== 0.0") if the traversal has not reached the end waypoint.

Copyright © 2013. All rights reserved.