edu.stanford.rsl.konrad.geometry.motion
Class PointBasedMotionField
java.lang.Object
edu.stanford.rsl.konrad.geometry.motion.PointBasedMotionField
- All Implemented Interfaces:
- MotionField
public class PointBasedMotionField
- extends java.lang.Object
- implements MotionField
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointBasedMotionField
public PointBasedMotionField(TimeVariantSurfaceBSpline[] variants,
int context)
PointBasedMotionField
public PointBasedMotionField(java.util.ArrayList<TimeVariantSurfaceBSpline> variants,
int context)
PointBasedMotionField
public PointBasedMotionField(PointND[][] variants,
int context)
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
- Returns:
- the position at the time
getPositions
public java.util.ArrayList<PointND> getPositions(PointND initialPoint,
double initialTime,
double... times)
- Specified by:
getPositions
in interface MotionField
getTimeWarper
public TimeWarper getTimeWarper()
- Specified by:
getTimeWarper
in interface MotionField
setTimeWarper
public void setTimeWarper(TimeWarper warp)
- Specified by:
setTimeWarper
in interface MotionField