java.lang.Object
org.spongepowered.math.matrix.Matrix3f
- All Implemented Interfaces:
Serializable
,Matrixf
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()
ceil()
column
(int col) static Matrix3f
createRotation
(Complexf rot) static Matrix3f
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
static Matrix3f
createTranslation
(double x, double y) static Matrix3f
createTranslation
(float x, float y) static Matrix3f
float
div
(double a) div
(float a) boolean
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()
invert()
mul
(double a) mul
(float a) negate()
pow
(double pow) pow
(float pow) rotate
(Quaternionf rot) round()
row
(int row) scale
(double scale) scale
(double x, double y, double z) scale
(float scale) scale
(float x, float y, float z) float[]
toArray()
float[]
toArray
(boolean columnMajor) toDouble()
toFloat()
toString()
float
trace()
transform
(double x, double y, double z) transform
(float x, float y, float z) translate
(double x, double y) translate
(float x, float y)
-
Field Details
-
ZERO
-
IDENTITY
-
-
Constructor Details
-
Matrix3f
-
Matrix3f
-
Matrix3f
-
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 Details
-
get
public float get(int row, int col) -
row
-
column
-
add
-
sub
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
pow
-
pow
-
translate
-
translate
-
translate
-
scale
-
scale
-
scale
-
scale
-
scale
-
rotate
-
rotate
-
transform
-
transform
-
transform
-
floor
-
ceil
-
round
-
abs
-
negate
-
transpose
-
trace
public float trace() -
determinant
public float determinant()- Specified by:
determinant
in interfaceMatrixf
-
invert
-
toMatrix2
-
toMatrix4
-
toMatrixN
-
toArray
public float[] toArray() -
toArray
public float[] toArray(boolean columnMajor) -
toFloat
-
toDouble
-
toString
-
equals
-
hashCode
public int hashCode() -
from
-
from
public static Matrix3f from(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) -
fromDiagonal
-
createScaling
-
createScaling
-
createScaling
-
createScaling
-
createScaling
-
createTranslation
-
createTranslation
-
createTranslation
-
createRotation
-
createRotation
-