|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.vecmath2.util.MatrixUtils
public class MatrixUtils
Util class for Maths.
| Constructor Summary | |
|---|---|
MatrixUtils()
|
|
| Method Summary | |
|---|---|
static Matrix3f |
computeRotation(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
int normalize,
Matrix3f result)
Computes the rotation between the vectors v1 ans v2. |
static Matrix3f |
computeRotation(Tuple3f v1,
Tuple3f v2,
int normalize,
Matrix3f result)
Computes the rotation between the vectors v1 ans v2. |
static Matrix3f |
eulerToMatrix3f(float eulerX,
float eulerY,
float eulerZ)
Converts Euler angles to a Matrix3f. |
static void |
eulerToMatrix3f(float eulerX,
float eulerY,
float eulerZ,
Matrix3f matrix)
Converts Euler angles to a Matrix3f. |
static Matrix3f |
eulerToMatrix3f(Tuple3f euler)
Converts Euler angles to a Matrix3f. |
static void |
eulerToMatrix3f(Tuple3f euler,
Matrix3f matrix)
Converts Euler angles to a Matrix3f. |
static Matrix4f |
eulerToMatrix4f(float eulerX,
float eulerY,
float eulerZ)
Converts Euler angles to a Matrix4f. |
static void |
eulerToMatrix4f(float eulerX,
float eulerY,
float eulerZ,
Matrix4f matrix)
Converts Euler angles to a Matrix4f. |
static Matrix4f |
eulerToMatrix4f(Tuple3f euler)
Converts Euler angles to a Matrix4f. |
static void |
eulerToMatrix4f(Tuple3f euler,
Matrix4f matrix)
Converts Euler angles to a Matrix4f. |
static Matrix3f |
getRotationMatrix(float axisX,
float axisY,
float axisZ,
float angle)
Creates a 3x3 rotation matrix by a specified vector. |
static void |
getRotationMatrix(float axisX,
float axisY,
float axisZ,
float angle,
Matrix3f out)
Creates a 3x3 rotation matrix by a specified vector. |
static Matrix3f |
getRotationMatrix(Tuple3f axis,
float angle)
Creates a 3x3 rotation matrix by a specified vector. |
static void |
getRotationMatrix(Tuple3f axis,
float angle,
Matrix3f out)
Creates a 3x3 rotation matrix by a specified vector. |
static Matrix3f |
getRotationMatrixX(float angle)
Creates a 3x3 rotation matrix by the x-axis. |
static Matrix3f |
getRotationMatrixY(float angle)
Creates a 3x3 rotation matrix by the y-axis. |
static Matrix3f |
getRotationMatrixZ(float angle)
Creates a 3x3 rotation matrix by the z-axis. |
static Tuple3f |
matrixToEuler(Matrix3f matrix)
Converts a Matrix3f to a Tuple3f with Euler angles. |
static void |
matrixToEuler(Matrix3f matrix,
Tuple3f euler)
Converts a Matrix3f to a Tuple3f with Euler angles. |
static Tuple3f |
matrixToEuler(Matrix4f matrix)
Converts a Matrix4f to a Vector3f with Euler angles. |
static void |
matrixToEuler(Matrix4f matrix,
Tuple3f euler)
Converts a Matrix4f to a Tuple3f with Euler angles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixUtils()
| Method Detail |
|---|
public static void matrixToEuler(Matrix3f matrix,
Tuple3f euler)
matrix - the Matrix3f to be convertedpublic static Tuple3f matrixToEuler(Matrix3f matrix)
matrix - the Matrix3f to be converted
public static void matrixToEuler(Matrix4f matrix,
Tuple3f euler)
matrix - the Matrix4f to be convertedpublic static Tuple3f matrixToEuler(Matrix4f matrix)
matrix - the Matrix4f to be converted
public static void eulerToMatrix3f(float eulerX,
float eulerY,
float eulerZ,
Matrix3f matrix)
eulerX - the x-Euler-angleeulerY - the y-Euler-angleeulerZ - the z-Euler-anglematrix - the Matrix3f instance to write rotational values to
public static void eulerToMatrix3f(Tuple3f euler,
Matrix3f matrix)
euler - the Tuple3f containing all three Euler anglesmatrix - the Matrix3f instance to write rotational values to
public static Matrix3f eulerToMatrix3f(float eulerX,
float eulerY,
float eulerZ)
eulerX - the x-Euler-angleeulerY - the y-Euler-angleeulerZ - the z-Euler-angle
public static Matrix3f eulerToMatrix3f(Tuple3f euler)
euler - the Tuple3f containing all three Euler angles
public static void eulerToMatrix4f(float eulerX,
float eulerY,
float eulerZ,
Matrix4f matrix)
eulerX - the x-Euler-angleeulerY - the y-Euler-angleeulerZ - the z-Euler-anglematrix - the Matrix4f instance to write rotational values to
public static void eulerToMatrix4f(Tuple3f euler,
Matrix4f matrix)
euler - the Tuple3f containing all three Euler anglesmatrix - the Matrix4f instance to write rotational values topublic static Matrix4f eulerToMatrix4f(Tuple3f euler)
euler - the Tuple3f containing all three Euler angles
public static Matrix4f eulerToMatrix4f(float eulerX,
float eulerY,
float eulerZ)
eulerX - the x-Euler-angleeulerY - the y-Euler-angleeulerZ - the z-Euler-angle
public static final void getRotationMatrix(float axisX,
float axisY,
float axisZ,
float angle,
Matrix3f out)
axisX - the x-component of the vector (axis) to rotate aboutaxisY - the y-component of the vector (axis) to rotate aboutaxisZ - the z-component of the vector (axis) to rotate aboutangle - the angle to rotate byout - the Matrix3f to write the result to
public static final Matrix3f getRotationMatrix(float axisX,
float axisY,
float axisZ,
float angle)
axisX - the vector (axis) to rotate aroundaxisY - the vector (axis) to rotate aroundaxisZ - the vector (axis) to rotate aroundangle - the angle to rotate by
public static final Matrix3f getRotationMatrixX(float angle)
angle - the angle to rotate by
public static final Matrix3f getRotationMatrixY(float angle)
angle - the angle to rotate by
public static final Matrix3f getRotationMatrixZ(float angle)
angle - the angle to rotate by
public static void getRotationMatrix(Tuple3f axis,
float angle,
Matrix3f out)
axis - Rotation axisangle - the angle to rotate byout - the Matrix3f to write the result to
public static Matrix3f getRotationMatrix(Tuple3f axis,
float angle)
axis - Rotation axisangle - the angle to rotate by
public static final Matrix3f computeRotation(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
int normalize,
Matrix3f result)
v1x - the first vectorv1y - the first vectorv1z - the first vectorv2x - the second vectorv2y - the second vectorv2z - the second vectornormalize - normalize input vectors (bitmask)result - the result object
public static final Matrix3f computeRotation(Tuple3f v1,
Tuple3f v2,
int normalize,
Matrix3f result)
v1 - the first vectorv2 - the second vectornormalize - normalize input vectors (bitmask)result - the result object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||