public class Matrix4f extends Object
| Constructor and Description |
|---|
Matrix4f()
Initializes with 0
|
| Modifier and Type | Method and Description |
|---|---|
float |
get(int x,
int y) |
float[][] |
getM()
Returns a copy of the array!
|
float[][] |
getMReference()
Returns the array itself
|
Matrix4f |
initIdentiy()
Initializes this matrix as identiy Matrix
|
Matrix4f |
initOrthographic(float left,
float right,
float bottom,
float top,
float near,
float far) |
Matrix4f |
initPerspective(float fov,
float aspect,
float zNear,
float zFar) |
Matrix4f |
initRotation(float x,
float y,
float z) |
Matrix4f |
initRotation(Vector3f forward,
Vector3f up) |
Matrix4f |
initRotation(Vector3f forward,
Vector3f up,
Vector3f right) |
Matrix4f |
initScale(float x,
float y,
float z) |
Matrix4f |
initTranslation(float x,
float y,
float z) |
Matrix4f |
mul(Matrix4f ma) |
void |
set(int x,
int y,
float val) |
void |
set1Line(float x1,
float x2,
float x3,
int x4) |
void |
set2Line(float x1,
float x2,
float x3,
float x4) |
void |
set3Line(float x1,
float x2,
float x3,
float x4) |
void |
set4Line(float x1,
float x2,
float x3,
float x4) |
void |
setM(float[][] m) |
String |
toString() |
Vector3f |
transform(Vector3f v) |
public Matrix4f initIdentiy()
public Matrix4f initTranslation(float x, float y, float z)
public Matrix4f initRotation(float x, float y, float z)
public Matrix4f initScale(float x, float y, float z)
public Matrix4f initPerspective(float fov, float aspect, float zNear, float zFar)
public Matrix4f initOrthographic(float left, float right, float bottom, float top, float near, float far)
public float get(int x,
int y)
public void set(int x,
int y,
float val)
public void set1Line(float x1,
float x2,
float x3,
int x4)
public void set2Line(float x1,
float x2,
float x3,
float x4)
public void set3Line(float x1,
float x2,
float x3,
float x4)
public void set4Line(float x1,
float x2,
float x3,
float x4)
public float[][] getM()
public float[][] getMReference()
public void setM(float[][] m)
Copyright © 2014. All rights reserved.