edu.stanford.rsl.konrad.geometry.motion
Class RotationMotionField

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.motion.SimpleMotionField
      extended by edu.stanford.rsl.konrad.geometry.motion.RotationMotionField
All Implemented Interfaces:
MotionField
Direct Known Subclasses:
MovingCenterRotationMotionField

public class RotationMotionField
extends SimpleMotionField

MotionField to handle rotational motion.

Author:
akmaier

Constructor Summary
RotationMotionField(PointND transformationCenter, SimpleVector axis, double angle)
          Creates a new rotational MotionField.
 
Method Summary
 PointND getPosition(PointND initialPosition, double initialTime, double time)
          Determines the position at a given initialPosition and a given time where time = 0 is the initial position and time = 1 is the end position.
 Transform getTransform(double initialTime, double time)
          Returns the interpolated transform between initial time and time.
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.motion.SimpleMotionField
getPositions, getTimeWarper, setTimeWarper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationMotionField

public RotationMotionField(PointND transformationCenter,
                           SimpleVector axis,
                           double angle)
Creates a new rotational MotionField. It transforms points with a rotation around the given axis and center point transformationCenter. The angle is given in radians.

Parameters:
transformationCenter -
axis -
angle -
Method Detail

getPosition

public PointND getPosition(PointND initialPosition,
                           double initialTime,
                           double time)
Description copied from interface: MotionField
Determines the position at a given initialPosition and a given time where time = 0 is the initial position and time = 1 is the end position.

Specified by:
getPosition in interface MotionField
Specified by:
getPosition in class SimpleMotionField
Returns:
the position at the time

getTransform

public Transform getTransform(double initialTime,
                              double time)
Returns the interpolated transform between initial time and time.

Parameters:
initialTime -
time -
Returns:
the transform