java.lang.Object
org.spongepowered.math.matrix.Matrix2f
- All Implemented Interfaces:
Serializable
,Matrixf
A 2x2 matrix containing values of type
float
.`- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabs()
ceil()
column
(int col) static Matrix2f
createRotation
(Complexf rot) static Matrix2f
createScaling
(double scale) static Matrix2f
createScaling
(double x, double y) static Matrix2f
createScaling
(float scale) static Matrix2f
createScaling
(float x, float y) static Matrix2f
static Matrix2f
createTranslation
(double x) static Matrix2f
createTranslation
(float x) float
div
(double a) div
(float a) boolean
floor()
static Matrix2f
from
(float n) static Matrix2f
from
(float m00, float m01, float m10, float m11) static Matrix2f
fromDiagonal
(float m00, float m11) float
get
(int row, int col) int
hashCode()
invert()
mul
(double a) mul
(float a) negate()
pow
(double pow) pow
(float pow) round()
row
(int row) scale
(double scale) scale
(double x, double y) scale
(float scale) scale
(float x, float y) float[]
toArray()
float[]
toArray
(boolean columnMajor) toDouble()
toFloat()
toString()
float
trace()
transform
(double x, double y) transform
(float x, float y) translate
(double x) translate
(float x)
-
Field Details
-
ZERO
-
IDENTITY
-
-
Constructor Details
-
Matrix2f
-
Matrix2f
-
Matrix2f
-
Matrix2f
public Matrix2f(double m00, double m01, double m10, double m11) -
Matrix2f
public Matrix2f(float m00, float m01, float m10, float m11)
-
-
Method Details
-
get
public float get(int row, int col) -
row
-
column
-
add
-
sub
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
pow
-
pow
-
translate
-
translate
-
scale
-
scale
-
scale
-
scale
-
scale
-
rotate
-
transform
-
transform
-
transform
-
floor
-
ceil
-
round
-
abs
-
negate
-
transpose
-
trace
public float trace() -
determinant
public float determinant()- Specified by:
determinant
in interfaceMatrixf
-
invert
-
toMatrix3
-
toMatrix4
-
toMatrixN
-
toArray
public float[] toArray() -
toArray
public float[] toArray(boolean columnMajor) -
toFloat
-
toDouble
-
toString
-
equals
-
hashCode
public int hashCode() -
from
-
from
-
fromDiagonal
-
createScaling
-
createScaling
-
createScaling
-
createScaling
-
createScaling
-
createTranslation
-
createTranslation
-
createRotation
-