Constructor and Description |
---|
Matrix4() |
Matrix4(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
compareTo(Matrix4 other) |
boolean |
equals(Matrix4 other) |
static Matrix4 |
fromRotation(Quaternion rot) |
static Matrix4 |
fromTranslation(AOVector vec) |
float |
get(int row,
int column) |
float |
getDeterminant() |
Matrix4 |
getInverse() |
AOVector |
getTranslation() |
Matrix4 |
multiply(float scalar) |
static Matrix4 |
multiply(float scalar,
Matrix4 transform) |
Matrix4 |
multiply(Matrix4 other) |
static AOVector |
multiply(Matrix4 matrix,
AOVector vector) |
static Matrix4 |
multiply(Matrix4 left,
Matrix4 right) |
static Plane |
multiply(Matrix4 transform,
Plane plane) |
Matrix4 |
rotate(Quaternion rot) |
void |
set(int row,
int column,
float val) |
void |
setRotation(Quaternion rot)
Sets the rotation of the matrix.
|
void |
setTranslation(AOVector vec) |
java.lang.String |
toString() |
Matrix4 |
translate(AOVector vec) |
public Matrix4()
public Matrix4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
public java.lang.Object clone()
clone
in class java.lang.Object
public float get(int row, int column)
public void set(int row, int column, float val)
public Matrix4 rotate(Quaternion rot)
public Matrix4 multiply(float scalar)
public boolean equals(Matrix4 other)
public int compareTo(Matrix4 other)
compareTo
in interface java.lang.Comparable<Matrix4>
public static Matrix4 fromRotation(Quaternion rot)
public AOVector getTranslation()
public void setTranslation(AOVector vec)
public void setRotation(Quaternion rot)
rot
- public Matrix4 getInverse()
public float getDeterminant()
public java.lang.String toString()
toString
in class java.lang.Object