public class MatrixFunctions extends Object
| コンストラクタ | 説明 |
|---|---|
MatrixFunctions() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static Matrix |
MGetIdent() |
Returns an identity matrix.
|
static Matrix |
MGetRotX(float th) |
Returns a rotation matrix around x-axis.
|
static Matrix |
MGetRotY(float th) |
Returns a rotation matrix around y-axis.
|
static Matrix |
MGetRotZ(float th) |
Returns a rotation matrix around z-axis.
|
static Matrix |
MGetScale(Vector scale) |
Returns a scaling matrix.
|
static Matrix |
MGetTranslate(Vector translate) |
Returns a translation matrix.
|
static Matrix |
MMult(Matrix m1,
Matrix m2) |
Multiplies two matrices together.
|
static Matrix |
MTranspose(Matrix m) |
Transposes a matrix.
|
public static Matrix MMult(Matrix m1, Matrix m2)
m1 - First matrixm2 - Second matrixpublic static Matrix MGetIdent()
public static Matrix MGetScale(Vector scale)
scale - Scaling vectorpublic static Matrix MGetTranslate(Vector translate)
translate - Translation vectorpublic static Matrix MGetRotX(float th)
th - Rotation angle (radian)public static Matrix MGetRotY(float th)
th - Rotation angle (radian)public static Matrix MGetRotZ(float th)
th - Rotation angle (radian)Copyright © 2019. All rights reserved.