Class Matrix4f
Inheritance
java.lang.Object
Matrix4f
Syntax
public class Matrix4f implements Matrix
Constructors
Matrix4f()
Declaration
Matrix4f(float[][] _m)
Declaration
public Matrix4f(float[][] _m)
Parameters
Type |
Name |
Description |
float |
_m |
|
Methods
get()
Declaration
Returns
Type |
Description |
float [][] |
|
get(int x, int y)
Declaration
public float get(int x, int y)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Returns
Overrides
getCols()
Declaration
Returns
Overrides
getRows()
Declaration
Returns
Overrides
initIdentity()
Declaration
public Matrix4f initIdentity()
Returns
initOrthographic(float left, float right, float bottom, float top, float near, float far)
Declaration
public Matrix4f initOrthographic(float left, float right, float bottom, float top, float near, float far)
Parameters
Type |
Name |
Description |
float |
left |
|
float |
right |
|
float |
bottom |
|
float |
top |
|
float |
near |
|
float |
far |
|
Returns
initPerspective(float fov, float width, float height, float zNear, float zFar)
Initializes The Perspective.
Declaration
public Matrix4f initPerspective(float fov, float width, float height, float zNear, float zFar)
Parameters
Type |
Name |
Description |
float |
fov |
|
float |
width |
|
float |
height |
|
float |
zNear |
|
float |
zFar |
|
Returns
initProjection(float fov, float aspectRatio, float zNear, float zFar)
Declaration
public Matrix4f initProjection(float fov, float aspectRatio, float zNear, float zFar)
Parameters
Type |
Name |
Description |
float |
fov |
|
float |
aspectRatio |
|
float |
zNear |
|
float |
zFar |
|
Returns
initRotation(float x, float y, float z)
Declaration
public Matrix4f initRotation(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
initRotation(Vector3f forward, Vector3f up)
Declaration
public Matrix4f initRotation(Vector3f forward, Vector3f up)
Parameters
Returns
initRotation(Vector3f forward, Vector3f up, Vector3f right)
Declaration
public Matrix4f initRotation(Vector3f forward, Vector3f up, Vector3f right)
Parameters
Returns
initScale(float x, float y, float z)
Declaration
public Matrix4f initScale(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
initTranslation(float x, float y, float z)
Declaration
public Matrix4f initTranslation(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
invertGeneric()
Declaration
public Matrix4f invertGeneric()
Returns
invertGeneric(Matrix4f dest)
Declaration
public Matrix4f invertGeneric(Matrix4f dest)
Parameters
Returns
invertPerspective(Matrix4f dest)
Declaration
public Matrix4f invertPerspective(Matrix4f dest)
Parameters
Returns
mul(Matrix4f r)
Declaration
public Matrix4f mul(Matrix4f r)
Parameters
Returns
set(float[][] m)
Declaration
public Matrix4f set(float[][] m)
Parameters
Type |
Name |
Description |
float |
m |
|
Returns
set(int x, int y, float value)
Declaration
public void set(int x, int y, float value)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
float |
value |
|
Declaration
public Vector3f transform(Vector3f other)
Parameters
Returns
transpose()
Transpose the current matrix and return it in a new one.
Declaration
public Matrix4f transpose()
Returns
transpose(Matrix4f dest)
Declaration
public Matrix4f transpose(Matrix4f dest)
Parameters
Returns