public class RotationMotionField extends SimpleMotionField
Constructor and Description |
---|
RotationMotionField(PointND transformationCenter,
SimpleVector axis,
double angle)
Creates a new rotational 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 RotationMotionField(PointND transformationCenter, SimpleVector axis, double angle)
transformationCenter
- axis
- angle
- public 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
-