movements
Class SingleDimensionalMovement
java.lang.Object
movements.SingleDimensionalMovement
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PolynomialMovement, SinusoidalMovement, StationaryMovement
- abstract class SingleDimensionalMovement
- extends java.lang.Object
- implements java.io.Serializable
An object of this class represents a movement in a single dimension
over a period of time.
Objects of this class are used, for example, to represent the
movement of a person or the movement of a person's hand.
The movement of a person would require three objects of this class,
one to indicate the distance down the set, one to indicate the
distance across the set and one to represent the direction in
which the person is facing. The movement of a hand, however,
would require only two objects of this class.
This class is abstract. Classes are derived from this class that
implement various movements. For example, a derived class
may implement a linear movement and another derived class may
implement a sinusoidal movement.
|
Method Summary |
(package private) abstract 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 |
SingleDimensionalMovement
SingleDimensionalMovement()
GetPosition
abstract 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.
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.
Copyright © 2003 Nigel Westbury