public class Rotation
extends java.lang.Object
Constructor and Description |
---|
Rotation(boolean[] axis,
double angle,
double duration)
Constructs a Rotation object.
|
Modifier and Type | Method and Description |
---|---|
double |
getAngle()
Gets the angle of the rotation.
|
boolean[] |
getAxis()
Gets the axis the rotation is about.
|
double |
getDuration()
Gets the duration of this rotation.
|
public Rotation(boolean[] axis, double angle, double duration)
axis
- A 3 elements boolean array to indicate which about which axis the rotation should be.
The elements refer to the axis X,Y and Z. The combination of more than
one axis isn't supported.angle
- The angle of the rotation in radians.duration
- The duration of this rotation.public double getAngle()
public boolean[] getAxis()
public double getDuration()