|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lwjgl.util.vector.Matrix
org.lwjgl.util.vector.Matrix3f
public class Matrix3f
Holds a 3x3 matrix.
Field Summary | |
---|---|
float |
m00
|
float |
m01
|
float |
m02
|
float |
m10
|
float |
m11
|
float |
m12
|
float |
m20
|
float |
m21
|
float |
m22
|
Constructor Summary | |
---|---|
Matrix3f()
Constructor for Matrix3f. |
Method Summary | |
---|---|
static Matrix3f |
add(Matrix3f left,
Matrix3f right,
Matrix3f dest)
Add two matrices together and place the result in a third matrix. |
float |
determinant()
|
Matrix |
invert()
Invert this matrix |
static Matrix3f |
invert(Matrix3f src,
Matrix3f dest)
Invert the source matrix and put the result into the destination matrix |
Matrix |
load(java.nio.FloatBuffer buf)
Load from a float buffer. |
Matrix3f |
load(Matrix3f src)
Load from another matrix |
static Matrix3f |
load(Matrix3f src,
Matrix3f dest)
Copy source matrix to destination matrix |
Matrix |
loadTranspose(java.nio.FloatBuffer buf)
Load from a float buffer. |
static Matrix3f |
mul(Matrix3f left,
Matrix3f right,
Matrix3f dest)
Multiply the right matrix by the left and place the result in a third matrix. |
Matrix |
negate()
Negate this matrix |
Matrix3f |
negate(Matrix3f dest)
Negate this matrix and place the result in a destination matrix. |
static Matrix3f |
negate(Matrix3f src,
Matrix3f dest)
Negate the source matrix and place the result in the destination matrix. |
Matrix |
setIdentity()
Set this matrix to be the identity matrix. |
static Matrix3f |
setIdentity(Matrix3f m)
Set the matrix to be the identity matrix. |
Matrix |
setZero()
Set this matrix to 0. |
static Matrix3f |
setZero(Matrix3f m)
Set the matrix matrix to 0. |
Matrix |
store(java.nio.FloatBuffer buf)
Store this matrix in a float buffer. |
Matrix |
storeTranspose(java.nio.FloatBuffer buf)
Store this matrix in a float buffer. |
static Matrix3f |
sub(Matrix3f left,
Matrix3f right,
Matrix3f dest)
Subtract the right matrix from the left and place the result in a third matrix. |
java.lang.String |
toString()
Returns a string representation of this matrix |
static Vector3f |
transform(Matrix3f left,
Vector3f right,
Vector3f dest)
Transform a Vector by a matrix and return the result in a destination vector. |
Matrix |
transpose()
Transpose this matrix |
Matrix3f |
transpose(Matrix3f dest)
Transpose this matrix and place the result in another matrix |
static Matrix3f |
transpose(Matrix3f src,
Matrix3f dest)
Transpose the source matrix and place the result into the destination matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float m00
public float m01
public float m02
public float m10
public float m11
public float m12
public float m20
public float m21
public float m22
Constructor Detail |
---|
public Matrix3f()
Method Detail |
---|
public Matrix3f load(Matrix3f src)
src
- The source matrix
public static Matrix3f load(Matrix3f src, Matrix3f dest)
src
- The source matrixdest
- The destination matrix, or null of a new matrix is to be created
public Matrix load(java.nio.FloatBuffer buf)
load
in class Matrix
buf
- A float buffer to read from
public Matrix loadTranspose(java.nio.FloatBuffer buf)
loadTranspose
in class Matrix
buf
- A float buffer to read from
public Matrix store(java.nio.FloatBuffer buf)
store
in class Matrix
buf
- The buffer to store this matrix in
public Matrix storeTranspose(java.nio.FloatBuffer buf)
storeTranspose
in class Matrix
buf
- The buffer to store this matrix in
public static Matrix3f add(Matrix3f left, Matrix3f right, Matrix3f dest)
left
- The left source matrixright
- The right source matrixdest
- The destination matrix, or null if a new one is to be created
public static Matrix3f sub(Matrix3f left, Matrix3f right, Matrix3f dest)
left
- The left source matrixright
- The right source matrixdest
- The destination matrix, or null if a new one is to be created
public static Matrix3f mul(Matrix3f left, Matrix3f right, Matrix3f dest)
left
- The left source matrixright
- The right source matrixdest
- The destination matrix, or null if a new one is to be created
public static Vector3f transform(Matrix3f left, Vector3f right, Vector3f dest)
left
- The left matrixright
- The right vectordest
- The destination vector, or null if a new one is to be created
public Matrix transpose()
transpose
in class Matrix
public Matrix3f transpose(Matrix3f dest)
dest
- The destination matrix or null if a new matrix is to be created
public static Matrix3f transpose(Matrix3f src, Matrix3f dest)
src
- The source matrix to be transposeddest
- The destination matrix or null if a new matrix is to be created
public float determinant()
determinant
in class Matrix
public java.lang.String toString()
toString
in class java.lang.Object
public Matrix invert()
invert
in class Matrix
public static Matrix3f invert(Matrix3f src, Matrix3f dest)
src
- The source matrix to be inverteddest
- The destination matrix, or null if a new one is to be created
public Matrix negate()
negate
in class Matrix
public Matrix3f negate(Matrix3f dest)
dest
- The destination matrix, or null if a new matrix is to be created
public static Matrix3f negate(Matrix3f src, Matrix3f dest)
src
- The source matrixdest
- The destination matrix, or null if a new matrix is to be created
public Matrix setIdentity()
setIdentity
in class Matrix
public static Matrix3f setIdentity(Matrix3f m)
m
- The matrix to be set to the identity
public Matrix setZero()
setZero
in class Matrix
public static Matrix3f setZero(Matrix3f m)
m
- The matrix to be set to 0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |