- java.lang.Object
-
- org.spongepowered.math.matrix.Matrix3f
-
- All Implemented Interfaces:
Serializable
,Matrixf
@Immutable public final class Matrix3f extends Object implements Matrixf, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Matrix3f(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
Matrix3f(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
Matrix3f(Matrix2f m)
Matrix3f(Matrix4f m)
Matrix3f(MatrixNf m)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Matrix3f
abs()
Matrix3f
add(Matrix3f m)
Matrix3f
ceil()
Vector3f
column(int col)
static Matrix3f
createRotation(Complexf rot)
static Matrix3f
createRotation(Quaternionf rot)
static Matrix3f
createScaling(double scale)
static Matrix3f
createScaling(double x, double y, double z)
static Matrix3f
createScaling(float scale)
static Matrix3f
createScaling(float x, float y, float z)
static Matrix3f
createScaling(Vector3f v)
static Matrix3f
createTranslation(double x, double y)
static Matrix3f
createTranslation(float x, float y)
static Matrix3f
createTranslation(Vector2f v)
float
determinant()
Matrix3f
div(double a)
Matrix3f
div(float a)
Matrix3f
div(Matrix3f m)
boolean
equals(Object other)
Matrix3f
floor()
static Matrix3f
from(float n)
static Matrix3f
from(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
static Matrix3f
fromDiagonal(float m00, float m11, float m22)
float
get(int row, int col)
int
hashCode()
Matrix3f
invert()
Matrix3f
mul(double a)
Matrix3f
mul(float a)
Matrix3f
mul(Matrix3f m)
Matrix3f
negate()
Matrix3f
pow(double pow)
Matrix3f
pow(float pow)
Matrix3f
rotate(Complexf rot)
Matrix3f
rotate(Quaternionf rot)
Matrix3f
round()
Vector3f
row(int row)
Matrix3f
scale(double scale)
Matrix3f
scale(double x, double y, double z)
Matrix3f
scale(float scale)
Matrix3f
scale(float x, float y, float z)
Matrix3f
scale(Vector3f v)
Matrix3f
sub(Matrix3f m)
float[]
toArray()
float[]
toArray(boolean columnMajor)
Matrix3d
toDouble()
Matrix3f
toFloat()
Matrix2f
toMatrix2()
Matrix4f
toMatrix4()
MatrixNf
toMatrixN()
String
toString()
float
trace()
Vector3f
transform(double x, double y, double z)
Vector3f
transform(float x, float y, float z)
Vector3f
transform(Vector3f v)
Matrix3f
translate(double x, double y)
Matrix3f
translate(float x, float y)
Matrix3f
translate(Vector2f v)
Matrix3f
transpose()
-
-
-
Constructor Detail
-
Matrix3f
public Matrix3f(Matrix2f m)
-
Matrix3f
public Matrix3f(Matrix4f m)
-
Matrix3f
public Matrix3f(MatrixNf m)
-
Matrix3f
public Matrix3f(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
-
Matrix3f
public Matrix3f(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
-
-
Method Detail
-
mul
public Matrix3f mul(double a)
-
div
public Matrix3f div(double a)
-
pow
public Matrix3f pow(double pow)
-
translate
public Matrix3f translate(double x, double y)
-
translate
public Matrix3f translate(float x, float y)
-
scale
public Matrix3f scale(double scale)
-
scale
public Matrix3f scale(float scale)
-
scale
public Matrix3f scale(double x, double y, double z)
-
scale
public Matrix3f scale(float x, float y, float z)
-
rotate
public Matrix3f rotate(Quaternionf rot)
-
transform
public Vector3f transform(double x, double y, double z)
-
transform
public Vector3f transform(float x, float y, float z)
-
determinant
public float determinant()
- Specified by:
determinant
in interfaceMatrixf
-
toMatrix2
public Matrix2f toMatrix2()
-
toMatrix4
public Matrix4f toMatrix4()
-
toMatrixN
public MatrixNf toMatrixN()
-
toArray
public float[] toArray()
-
from
public static Matrix3f from(float n)
-
from
public static Matrix3f from(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
-
fromDiagonal
public static Matrix3f fromDiagonal(float m00, float m11, float m22)
-
createScaling
public static Matrix3f createScaling(double scale)
-
createScaling
public static Matrix3f createScaling(float scale)
-
createScaling
public static Matrix3f createScaling(double x, double y, double z)
-
createScaling
public static Matrix3f createScaling(float x, float y, float z)
-
createTranslation
public static Matrix3f createTranslation(double x, double y)
-
createTranslation
public static Matrix3f createTranslation(float x, float y)
-
createRotation
public static Matrix3f createRotation(Quaternionf rot)
-
-