public final class Matrix4x4 extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
float[] |
m
内部管理を行っている行列。
|
修飾子とタイプ | メソッドと説明 |
---|---|
static Matrix4x4 |
create(Vector3 scale,
Vector3 rotate,
Vector3 position,
Matrix4x4 result)
描画用変換行列を作成する。
|
void |
identity()
単位行列を作成する。
|
void |
invert()
逆行列を作成する。
|
Matrix4x4 |
invert(Matrix4x4 result)
逆行列を作成する。
|
void |
lookAt(Vector3 position,
Vector3 look,
Vector3 up)
視線変更行列を生成する。
|
void |
multiply(Matrix4x4 trans)
this = this * transの計算を行う。
|
Matrix4x4 |
multiply(Matrix4x4 trans,
Matrix4x4 result)
result = this * transの計算を行う。
|
void |
projection(float near,
float far,
float fovY,
float aspect)
射影行列を作成する。
|
void |
rotate(float x,
float y,
float z,
float w)
回転行列を作成する。
|
void |
scale(float x,
float y,
float z)
拡大行列を作成する。
|
void |
set(Matrix4x4 origin)
値をコピーする。
|
void |
translate(float x,
float y,
float z)
位置行列を作成する。
|
Vector3 |
transVector(Vector3 v,
Vector3 result)
この行列を適用したベクトルをresultへ格納する。
|
public Matrix4x4()
public Matrix4x4(Matrix4x4 origin)
public void rotate(float x, float y, float z, float w)
x
- y
- z
- w
- public void translate(float x, float y, float z)
x
- y
- z
- public void invert()
public void multiply(Matrix4x4 trans)
trans
- public Vector3 transVector(Vector3 v, Vector3 result)
v
- result
- public static Matrix4x4 create(Vector3 scale, Vector3 rotate, Vector3 position, Matrix4x4 result)
scale
- rotate
- position
- result
- public Matrix4x4 multiply(Matrix4x4 trans, Matrix4x4 result)
trans
- result
- public void scale(float x, float y, float z)
x
- y
- z
- public void set(Matrix4x4 origin)
origin
- public void identity()
public void lookAt(Vector3 position, Vector3 look, Vector3 up)
position
- look
- up
- public void projection(float near, float far, float fovY, float aspect)
near
- far
- fovY
- aspect
-