Record Class Selector.Transformation.Matrix
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Transformation.Matrix
- All Implemented Interfaces:
Selector.Transformation
- Enclosing interface:
Selector.Transformation
public static record Selector.Transformation.Matrix(org.joml.Matrix4f matrix)
extends Record
implements Selector.Transformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface Selector.Transformation
Selector.Transformation.Components, Selector.Transformation.Matrix -
Constructor Summary
ConstructorsConstructorDescriptionMatrix(org.joml.Matrix4f matrix) Creates an instance of aMatrixrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Matrix4fmatrix()Returns the value of thematrixrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Matrix
public Matrix(org.joml.Matrix4f matrix) Creates an instance of aMatrixrecord class.- Parameters:
matrix- the value for thematrixrecord component
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceSelector.Transformation
-
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 withObjects::equals(Object,Object). -
matrix
public org.joml.Matrix4f matrix()Returns the value of thematrixrecord component.- Returns:
- the value of the
matrixrecord component
-