public class AffineMotionField extends SimpleMotionField
Constructor and Description |
---|
AffineMotionField(PointND transformationCenter,
SimpleMatrix rotMat,
SimpleVector translation)
Creates a new rotational and translation MotionField.
|
AffineMotionField(PointND transformationCenter,
SimpleVector axis,
double angle,
SimpleVector translation)
Creates a new rotational and translation MotionField.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getPositions, getTimeWarper, setTimeWarper
public AffineMotionField(PointND transformationCenter, SimpleVector axis, double angle, SimpleVector translation)
transformationCenter
- axis
- angle
- public AffineMotionField(PointND transformationCenter, SimpleMatrix rotMat, SimpleVector translation)
transformationCenter
- the center point of the rotationrotMat
- the rotation matrixtranslation
- the translationpublic PointND getPosition(PointND initialPosition, double initialTime, double time)
MotionField
getPosition
in interface MotionField
getPosition
in class SimpleMotionField
public Transform getTransform(double initialTime, double time)
initialTime
- time
-