- java.lang.Object
-
- org.spongepowered.math.matrix.Matrix2d
-
- All Implemented Interfaces:
Serializable
,Matrixd
@Immutable public final class Matrix2d extends Object implements Matrixd, Serializable
A 2x2 matrix containing values of typedouble
.`- See Also:
- Serialized Form
-
-
Method Summary
-
-
-
Method Detail
-
mul
public Matrix2d mul(float a)
-
div
public Matrix2d div(float a)
-
pow
public Matrix2d pow(float pow)
-
translate
public Matrix2d translate(float x)
-
translate
public Matrix2d translate(double x)
-
scale
public Matrix2d scale(float scale)
-
scale
public Matrix2d scale(double scale)
-
scale
public Matrix2d scale(float x, float y)
-
scale
public Matrix2d scale(double x, double y)
-
transform
public Vector2d transform(float x, float y)
-
transform
public Vector2d transform(double x, double y)
-
determinant
public double determinant()
- Specified by:
determinant
in interfaceMatrixd
-
toMatrix3
public Matrix3d toMatrix3()
-
toMatrix4
public Matrix4d toMatrix4()
-
toMatrixN
public MatrixNd toMatrixN()
-
toArray
public double[] toArray()
-
from
public static Matrix2d from(double n)
-
from
public static Matrix2d from(double m00, double m01, double m10, double m11)
-
fromDiagonal
public static Matrix2d fromDiagonal(double m00, double m11)
-
createScaling
public static Matrix2d createScaling(float scale)
-
createScaling
public static Matrix2d createScaling(double scale)
-
createScaling
public static Matrix2d createScaling(float x, float y)
-
createScaling
public static Matrix2d createScaling(double x, double y)
-
createTranslation
public static Matrix2d createTranslation(float x)
-
createTranslation
public static Matrix2d createTranslation(double x)
-
-