Record Class Mat3
java.lang.Object
java.lang.Record
dev.engine.core.math.Mat3
public record Mat3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMat3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) Creates an instance of aMat3record class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inverse()floatm00()Returns the value of them00record component.floatm01()Returns the value of them01record component.floatm02()Returns the value of them02record component.floatm10()Returns the value of them10record component.floatm11()Returns the value of them11record component.floatm12()Returns the value of them12record component.floatm20()Returns the value of them20record component.floatm21()Returns the value of them21record component.floatm22()Returns the value of them22record component.Computes the normal matrix (inverse transpose) from this 3x3 matrix.scale(float s) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
IDENTITY
-
-
Constructor Details
-
Mat3
public Mat3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) Creates an instance of aMat3record class.- Parameters:
m00- the value for them00record componentm01- the value for them01record componentm02- the value for them02record componentm10- the value for them10record componentm11- the value for them11record componentm12- the value for them12record componentm20- the value for them20record componentm21- the value for them21record componentm22- the value for them22record component
-
-
Method Details
-
mul
-
transform
-
transpose
-
determinant
public float determinant() -
inverse
-
normalMatrix
Computes the normal matrix (inverse transpose) from this 3x3 matrix. -
scale
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
m00
public float m00()Returns the value of them00record component.- Returns:
- the value of the
m00record component
-
m01
public float m01()Returns the value of them01record component.- Returns:
- the value of the
m01record component
-
m02
public float m02()Returns the value of them02record component.- Returns:
- the value of the
m02record component
-
m10
public float m10()Returns the value of them10record component.- Returns:
- the value of the
m10record component
-
m11
public float m11()Returns the value of them11record component.- Returns:
- the value of the
m11record component
-
m12
public float m12()Returns the value of them12record component.- Returns:
- the value of the
m12record component
-
m20
public float m20()Returns the value of them20record component.- Returns:
- the value of the
m20record component
-
m21
public float m21()Returns the value of them21record component.- Returns:
- the value of the
m21record component
-
m22
public float m22()Returns the value of them22record component.- Returns:
- the value of the
m22record component
-