public class Matrix3f extends Matrix implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
float |
m00 |
float |
m01 |
float |
m02 |
float |
m10 |
float |
m11 |
float |
m12 |
float |
m20 |
float |
m21 |
float |
m22 |
Constructor and Description |
---|
Matrix3f()
Constructor for Matrix3f.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
public Matrix3f()
public Matrix3f load(Matrix3f src)
src
- The source matrixpublic static Matrix3f load(Matrix3f src, Matrix3f dest)
src
- The source matrixdest
- The destination matrix, or null of a new matrix is to be createdpublic Matrix load(java.nio.FloatBuffer buf)
public Matrix loadTranspose(java.nio.FloatBuffer buf)
loadTranspose
in class Matrix
buf
- A float buffer to read frompublic Matrix store(java.nio.FloatBuffer buf)
public Matrix storeTranspose(java.nio.FloatBuffer buf)
storeTranspose
in class Matrix
buf
- The buffer to store this matrix inpublic 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 createdpublic 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 createdpublic 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 createdpublic 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 createdpublic Matrix transpose()
public Matrix3f transpose(Matrix3f dest)
dest
- The destination matrix or null if a new matrix is to be createdpublic 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 createdpublic float determinant()
determinant
in class Matrix
public java.lang.String toString()
toString
in class java.lang.Object
public Matrix invert()
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 createdpublic Matrix3f negate(Matrix3f dest)
dest
- The destination matrix, or null if a new matrix is to be createdpublic static Matrix3f negate(Matrix3f src, Matrix3f dest)
src
- The source matrixdest
- The destination matrix, or null if a new matrix is to be createdpublic Matrix setIdentity()
setIdentity
in class Matrix
public static Matrix3f setIdentity(Matrix3f m)
m
- The matrix to be set to the identitypublic Matrix setZero()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.