movements
Class PolynomialMovement

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

class PolynomialMovement
extends SingleDimensionalMovement


Field Summary
private  double acceleration
           
private  double position
           
private  double speed
           
 
Constructor Summary
(package private) PolynomialMovement()
           
(package private) PolynomialMovement(double position)
           
(package private) PolynomialMovement(double position, double speed)
           
(package private) PolynomialMovement(double position, double speed, double acceleration)
           
 
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

speed

private double speed

acceleration

private double acceleration
Constructor Detail

PolynomialMovement

PolynomialMovement(double position)

PolynomialMovement

PolynomialMovement(double position,
                   double speed)

PolynomialMovement

PolynomialMovement(double position,
                   double speed,
                   double acceleration)

PolynomialMovement

PolynomialMovement()
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