|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.swogl.MatrixUtils
public class MatrixUtils
Matrix utility methods
| Method Summary | |
|---|---|
static javax.vecmath.Matrix4f |
identity()
Creates and returns an identity matrix |
static javax.vecmath.Matrix4f |
invert(javax.vecmath.Matrix4f matrix)
Creates and returns a matrix that is the inverse of the given matrix. |
static javax.vecmath.Matrix4f |
mul(javax.vecmath.Matrix4f... matrices)
Returns the product of the given matrices |
static javax.vecmath.Matrix4f |
rotate(javax.vecmath.Vector3f axis,
double angleRad)
Creates a matrix that describes a rotation of the given angle around the given axis |
static javax.vecmath.Matrix4f |
rotateX(double angleRad)
Creates and returns a rotation matrix. |
static javax.vecmath.Matrix4f |
rotateY(double angleRad)
Creates and returns a rotation matrix. |
static javax.vecmath.Matrix4f |
rotateZ(double angleRad)
Creates and returns a rotation matrix. |
static javax.vecmath.Matrix4f |
scale(float s)
Creates and returns a scaling matrix. |
static javax.vecmath.Matrix4f |
scale(float x,
float y,
float z)
Creates and returns a scaling matrix |
static javax.vecmath.Matrix4f |
translate(float dx,
float dy,
float dz)
Creates and returns a translation matrix. |
static javax.vecmath.Matrix4f |
translate(javax.vecmath.Tuple3f t)
Creates and returns a translation matrix. |
static javax.vecmath.Matrix4f |
transpose(javax.vecmath.Matrix4f matrix)
Creates and returns a matrix that is the transpose of the given matrix. |
static javax.vecmath.Matrix4f |
writeBufferToMatrix(java.nio.FloatBuffer buffer,
javax.vecmath.Matrix4f matrix)
Write the contents of the given buffer into the given matrix in column-major order and returns it. |
static java.nio.FloatBuffer |
writeMatrixToBuffer(javax.vecmath.Matrix4f matrix,
java.nio.FloatBuffer buffer)
Write the contents of the given matrix into the given buffer in column-major order and returns it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.vecmath.Matrix4f scale(float s)
s - The scaling
public static javax.vecmath.Matrix4f scale(float x,
float y,
float z)
x - Scaling in x-directiony - Scaling in y-directionz - Scaling in z-direction
public static javax.vecmath.Matrix4f rotateX(double angleRad)
angleRad - The angle
public static javax.vecmath.Matrix4f rotateY(double angleRad)
angleRad - The angle
public static javax.vecmath.Matrix4f rotateZ(double angleRad)
angleRad - The angle
public static javax.vecmath.Matrix4f rotate(javax.vecmath.Vector3f axis,
double angleRad)
axis - The axis of rotationangleRad - The rotation angle, in radians
public static javax.vecmath.Matrix4f translate(javax.vecmath.Tuple3f t)
t - The translation
public static javax.vecmath.Matrix4f translate(float dx,
float dy,
float dz)
dx - The x-translationdy - The y-translationdz - The z-translation
public static javax.vecmath.Matrix4f identity()
public static javax.vecmath.Matrix4f mul(javax.vecmath.Matrix4f... matrices)
matrices - The matrices
public static javax.vecmath.Matrix4f invert(javax.vecmath.Matrix4f matrix)
matrix - The matrix to invert
public static javax.vecmath.Matrix4f transpose(javax.vecmath.Matrix4f matrix)
matrix - The matrix to transpose
public static java.nio.FloatBuffer writeMatrixToBuffer(javax.vecmath.Matrix4f matrix,
java.nio.FloatBuffer buffer)
null, a new direct buffer will be
created and returned.
matrix - The matrixbuffer - The buffer to write to
public static javax.vecmath.Matrix4f writeBufferToMatrix(java.nio.FloatBuffer buffer,
javax.vecmath.Matrix4f matrix)
null, a new matrix is
created and returned.
buffer - The buffer to read frommatrix - The matrix to fill
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||