public final class AxisAngle extends Rotation
AxisAngle object represents a rotation around a three dimensional axis.| Modifier and Type | Field and Description |
|---|---|
static AxisAngle |
X_0
Represents a rotation of 0 degrees around the x-axis.
|
static AxisAngle |
X_180
Represents a rotation of 180 degrees around the x-axis.
|
static AxisAngle |
X_270
Represents a rotation of 270 degrees around the x-axis.
|
static AxisAngle |
X_90
Represents a rotation of 90 degrees around the x-axis.
|
static AxisAngle |
Y_0
Represents a rotation of 0 degrees around the y-axis.
|
static AxisAngle |
Y_180
Represents a rotation of 180 degrees around the y-axis.
|
static AxisAngle |
Y_270
Represents a rotation of 270 degrees around the y-axis.
|
static AxisAngle |
Y_90
Represents a rotation of 90 degrees around the y-axis.
|
static AxisAngle |
Z_0
Represents a rotation of 0 degrees around the z-axis.
|
static AxisAngle |
Z_180
Represents a rotation of 180 degrees around the z-axis.
|
static AxisAngle |
Z_270
Represents a rotation of 270 degrees around the z-axis.
|
static AxisAngle |
Z_90
Represents a rotation of 90 degrees around the z-axis.
|
| Modifier and Type | Method and Description |
|---|---|
static AxisAngle |
create(Vec<Three> axis,
double angle)
Creates a new
AxisAngle object out of a rotation axis and an angle. |
static AxisAngle |
createFromQuaternion(Quaternion q)
Creates a
AxisAngle using an already created Quaternion. |
protected Mat<Three,Three> |
createRotationMatrix() |
boolean |
equals(java.lang.Object o) |
double |
getAngle() |
Vec<Three> |
getAxis() |
int |
hashCode() |
boolean |
resembles(java.lang.Object o) |
java.lang.String |
toString() |
public static final AxisAngle X_0
public static final AxisAngle X_90
public static final AxisAngle X_180
public static final AxisAngle X_270
public static final AxisAngle Y_0
public static final AxisAngle Y_90
public static final AxisAngle Y_180
public static final AxisAngle Y_270
public static final AxisAngle Z_0
public static final AxisAngle Z_90
public static final AxisAngle Z_180
public static final AxisAngle Z_270
public static AxisAngle create(Vec<Three> axis, double angle)
AxisAngle object out of a rotation axis and an angle.axis - the axis of the rotationangle - the angle of the rotationAxisAngle object with the corresponding valuesjava.lang.NullPointerException - if axis is nulljava.lang.IllegalArgumentException - if axis is a zero vectorjava.lang.IllegalArgumentException - if angle is equal to (+/-)Infinity or NaNpublic static AxisAngle createFromQuaternion(Quaternion q)
AxisAngle using an already created Quaternion.
If the resulting angle of the axis-angle is equal to 0.0,
every arbitrary rotation axis is valid for the axis-angle. In that case,
(0,1,0) will be used as the rotation axis.
q - the quaternion to convertjava.lang.NullPointerException - if q is nullpublic boolean resembles(java.lang.Object o)
resembles in class GeometrixObjectpublic boolean equals(java.lang.Object o)
equals in class GeometrixObjectpublic int hashCode()
hashCode in class GeometrixObjectpublic java.lang.String toString()
toString in class GeometrixObjectpublic double getAngle()