movements
Class StationaryMovement

java.lang.Object
  extended bymovements.SingleDimensionalMovement
      extended bymovements.StationaryMovement
All Implemented Interfaces:
java.io.Serializable

class StationaryMovement
extends SingleDimensionalMovement


Field Summary
private  double position
           
 
Constructor Summary
(package private) StationaryMovement(double position)
           
 
Method Summary
(package private)  double GetPosition(int ticksIntoMovement)
          Given a point of time as the number of 'ticks' after the start of the movement, this method returns the position at that point of time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

private double position
Constructor Detail

StationaryMovement

StationaryMovement(double position)
Method Detail

GetPosition

double GetPosition(int ticksIntoMovement)
Description copied from class: SingleDimensionalMovement
Given a point of time as the number of 'ticks' after the start of the movement, this method returns the position at that point of time. If the 'tick' parameter is less than zero or is greater than the number of ticks in the movement then the result of this method is undefined.

Specified by:
GetPosition in class SingleDimensionalMovement


Copyright © 2003 Nigel Westbury