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