- 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 Matrix3fabs()Matrix3fadd(Matrix3f m)Matrix3fceil()Vector3fcolumn(int col)static Matrix3fcreateRotation(Complexf rot)static Matrix3fcreateRotation(Quaternionf rot)static Matrix3fcreateScaling(double scale)static Matrix3fcreateScaling(double x, double y, double z)static Matrix3fcreateScaling(float scale)static Matrix3fcreateScaling(float x, float y, float z)static Matrix3fcreateScaling(Vector3f v)static Matrix3fcreateTranslation(double x, double y)static Matrix3fcreateTranslation(float x, float y)static Matrix3fcreateTranslation(Vector2f v)floatdeterminant()Matrix3fdiv(double a)Matrix3fdiv(float a)Matrix3fdiv(Matrix3f m)booleanequals(Object other)Matrix3ffloor()static Matrix3ffrom(float n)static Matrix3ffrom(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)static Matrix3ffromDiagonal(float m00, float m11, float m22)floatget(int row, int col)inthashCode()Matrix3finvert()Matrix3fmul(double a)Matrix3fmul(float a)Matrix3fmul(Matrix3f m)Matrix3fnegate()Matrix3fpow(double pow)Matrix3fpow(float pow)Matrix3frotate(Complexf rot)Matrix3frotate(Quaternionf rot)Matrix3fround()Vector3frow(int row)Matrix3fscale(double scale)Matrix3fscale(double x, double y, double z)Matrix3fscale(float scale)Matrix3fscale(float x, float y, float z)Matrix3fscale(Vector3f v)Matrix3fsub(Matrix3f m)float[]toArray()float[]toArray(boolean columnMajor)Matrix3dtoDouble()Matrix3ftoFloat()Matrix2ftoMatrix2()Matrix4ftoMatrix4()MatrixNftoMatrixN()StringtoString()floattrace()Vector3ftransform(double x, double y, double z)Vector3ftransform(float x, float y, float z)Vector3ftransform(Vector3f v)Matrix3ftranslate(double x, double y)Matrix3ftranslate(float x, float y)Matrix3ftranslate(Vector2f v)Matrix3ftranspose()
-
-
-
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:
determinantin 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)
-
-