Top Description Constructors Methods
org.lwjgl.util.vector

public abstract Class Matrix

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.lwjgl.util.vector.Matrix2f, org.lwjgl.util.vector.Matrix3f, org.lwjgl.util.vector.Matrix4f
Imports
java.io.Serializable, java.nio.FloatBuffer

Base class for matrices. When a matrix is constructed it will be the identity matrix unless otherwise stated.
Author
cix_foo
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
protected
Matrix()

Constructor for Matrix.

Method Summary

Modifier and TypeMethod and Description
public abstract float

Returns:

the determinant of the matrix
determinant
()

public abstract Matrix

Returns:

this
invert
()

Invert this matrix

public abstract Matrix

Returns:

this
load
(FloatBuffer
A float buffer to read from
buf
)

Load from a float buffer.

public abstract Matrix

Returns:

this
loadTranspose
(FloatBuffer
A float buffer to read from
buf
)

Load from a float buffer.

public abstract Matrix

Returns:

this
negate
()

Negate this matrix

public abstract Matrix

Returns:

this
setIdentity
()

Set this matrix to be the identity matrix.

public abstract Matrix

Returns:

this
setZero
()

Set this matrix to 0.

public abstract Matrix

Returns:

this
store
(FloatBuffer
The buffer to store this matrix in
buf
)

Store this matrix in a float buffer.

public abstract Matrix

Returns:

this
storeTranspose
(FloatBuffer
The buffer to store this matrix in
buf
)

Store this matrix in a float buffer.

public abstract Matrix

Returns:

this
transpose
()

Transpose this matrix

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Matrixback to summary
protected Matrix()

Constructor for Matrix.

Method Detail

determinantback to summary
public abstract float determinant()
Returns:float

the determinant of the matrix

invertback to summary
public abstract Matrix invert()

Invert this matrix

Returns:Matrix

this

loadback to summary
public abstract Matrix load(FloatBuffer buf)

Load from a float buffer. The buffer stores the matrix in column major (OpenGL) order.

Parameters
buf:FloatBuffer

A float buffer to read from

Returns:Matrix

this

loadTransposeback to summary
public abstract Matrix loadTranspose(FloatBuffer buf)

Load from a float buffer. The buffer stores the matrix in row major (mathematical) order.

Parameters
buf:FloatBuffer

A float buffer to read from

Returns:Matrix

this

negateback to summary
public abstract Matrix negate()

Negate this matrix

Returns:Matrix

this

setIdentityback to summary
public abstract Matrix setIdentity()

Set this matrix to be the identity matrix.

Returns:Matrix

this

setZeroback to summary
public abstract Matrix setZero()

Set this matrix to 0.

Returns:Matrix

this

storeback to summary
public abstract Matrix store(FloatBuffer buf)

Store this matrix in a float buffer. The matrix is stored in column major (openGL) order.

Parameters
buf:FloatBuffer

The buffer to store this matrix in

Returns:Matrix

this

storeTransposeback to summary
public abstract Matrix storeTranspose(FloatBuffer buf)

Store this matrix in a float buffer. The matrix is stored in row major (maths) order.

Parameters
buf:FloatBuffer

The buffer to store this matrix in

Returns:Matrix

this

transposeback to summary
public abstract Matrix transpose()

Transpose this matrix

Returns:Matrix

this