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

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.motion.SimpleMotionField
      extended by edu.stanford.rsl.konrad.geometry.motion.PlanarMotionField
All Implemented Interfaces:
MotionField

public class PlanarMotionField
extends SimpleMotionField

Class to project a MotionField onto a plane. Any off-plane motion is inhibited.

Author:
akmaier

Constructor Summary
PlanarMotionField(MotionField fullMotion, SimpleVector planeNormal)
           
 
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.
 java.util.ArrayList<PointND> getPositions(PointND initialPosition, double initialTime, double... times)
           
 TimeWarper getTimeWarper()
           
 void setTimeWarper(TimeWarper warp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanarMotionField

public PlanarMotionField(MotionField fullMotion,
                         SimpleVector planeNormal)
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

getPositions

public java.util.ArrayList<PointND> getPositions(PointND initialPosition,
                                                 double initialTime,
                                                 double... times)
Specified by:
getPositions in interface MotionField
Overrides:
getPositions in class SimpleMotionField

getTimeWarper

public TimeWarper getTimeWarper()
Specified by:
getTimeWarper in interface MotionField
Overrides:
getTimeWarper in class SimpleMotionField

setTimeWarper

public void setTimeWarper(TimeWarper warp)
Specified by:
setTimeWarper in interface MotionField
Overrides:
setTimeWarper in class SimpleMotionField