public class Rotation
extends java.lang.Object
Constructor | Description |
---|---|
Rotation() |
Default constructor.
|
Rotation(double[] v) |
|
Rotation(double alpha,
Vector3d v) |
The created object represent a rotation of an angle of 'alpha' radians along the vector 'v'.
|
Rotation(double alpha,
Vector3f v) |
The created object represent a rotation of an angle of 'alpha' radians along the vector 'v'.
|
Rotation(float[] v) |
|
Rotation(Rotation r) |
Copy constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Vector3d |
conjugate(Vector3d v) |
|
Vector3d |
conjugateInverse(Vector3d v) |
|
boolean |
equals(Rotation r2) |
|
double[] |
getData() |
|
float[] |
getDataAsFloatArray() |
|
static Rotation |
getDegreeRotation(double alpha,
Vector3d v) |
Get a rotation from an angle alpha given in degree and an axis v
|
Rotation |
getInverse() |
Return the inverse rotation.
|
double[] |
getRotationMatrix() |
|
double[] |
getUnRotateMatrix() |
|
Vector3d |
getVectorY() |
|
int |
hashCode() |
|
boolean |
isIdentity() |
Return true if this object represents an identity transformation.
|
Rotation |
multiply(Rotation q) |
|
Rotation |
power(double p) |
|
Rotation |
times(Rotation q) |
|
java.lang.String |
toString() |
public Rotation()
public Rotation(Rotation r)
r
- the given rotation.public Rotation(double alpha, Vector3d v)
alpha
- the rotation angle in radians.v
- the vector carrying the rotation.public Rotation(double alpha, Vector3f v)
alpha
- the rotation angle in radians.v
- the vector carrying the rotation.public Rotation(float[] v)
public Rotation(double[] v)
public static Rotation getDegreeRotation(double alpha, Vector3d v)
alpha
- angle of rotation in degreev
- the axis of the rotationpublic Rotation getInverse()
public boolean isIdentity()
public double[] getRotationMatrix()
public double[] getUnRotateMatrix()
public java.lang.String toString()
toString
in class java.lang.Object
public Vector3d getVectorY()
public Rotation power(double p)
public double[] getData()
public float[] getDataAsFloatArray()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(Rotation r2)