Package org.lwjgl.util.vector
Class Matrix
java.lang.Object
org.lwjgl.util.vector.Matrix
- All Implemented Interfaces:
Serializable
Base class for matrices. When a matrix is constructed it will be the identity
matrix unless otherwise stated.
- Version:
- $Revision$ $Id$
- Author:
- cix_foo invalid input: '<'cix_foo@users.sourceforge.net>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract floatabstract Matrixinvert()Invert this matrixabstract Matrixload(FloatBuffer buf) Load from a float buffer.abstract MatrixloadTranspose(FloatBuffer buf) Load from a float buffer.abstract Matrixnegate()Negate this matrixabstract MatrixSet this matrix to be the identity matrix.abstract MatrixsetZero()Set this matrix to 0.abstract Matrixstore(FloatBuffer buf) Store this matrix in a float buffer.abstract MatrixStore this matrix in a float buffer.abstract MatrixTranspose this matrix
-
Constructor Details
-
Matrix
protected Matrix()Constructor for Matrix.
-
-
Method Details
-
setIdentity
Set this matrix to be the identity matrix.- Returns:
- this
-
invert
Invert this matrix- Returns:
- this
-
load
Load from a float buffer. The buffer stores the matrix in column major (OpenGL) order.- Parameters:
buf- A float buffer to read from- Returns:
- this
-
loadTranspose
Load from a float buffer. The buffer stores the matrix in row major (mathematical) order.- Parameters:
buf- A float buffer to read from- Returns:
- this
-
negate
Negate this matrix- Returns:
- this
-
store
Store this matrix in a float buffer. The matrix is stored in column major (openGL) order.- Parameters:
buf- The buffer to store this matrix in- Returns:
- this
-
storeTranspose
Store this matrix in a float buffer. The matrix is stored in row major (maths) order.- Parameters:
buf- The buffer to store this matrix in- Returns:
- this
-
transpose
Transpose this matrix- Returns:
- this
-
setZero
Set this matrix to 0.- Returns:
- this
-
determinant
public abstract float determinant()- Returns:
- the determinant of the matrix
-