Record Class Selector.Transformation.Components
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Transformation.Components
- All Implemented Interfaces:
Selector.Transformation
- Enclosing interface:
Selector.Transformation
public static record Selector.Transformation.Components(@Nullable org.joml.Vector3f translation, @Nullable org.joml.Vector3f scale, @Nullable org.joml.Quaternionf leftRotation, @Nullable org.joml.Quaternionf rightRotation)
extends Record
implements Selector.Transformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface Selector.Transformation
Selector.Transformation.Components, Selector.Transformation.Matrix -
Constructor Summary
ConstructorsConstructorDescriptionComponents(org.joml.Vector3f translation, org.joml.Vector3f scale, org.joml.Quaternionf leftRotation, org.joml.Quaternionf rightRotation) Creates an instance of aComponentsrecord 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.QuaternionfReturns the value of theleftRotationrecord component.org.joml.QuaternionfReturns the value of therightRotationrecord component.org.joml.Vector3fscale()Returns the value of thescalerecord component.toJson()final StringtoString()Returns a string representation of this record class.org.joml.Vector3fReturns the value of thetranslationrecord component.
-
Constructor Details
-
Components
public Components(@Nullable org.joml.Vector3f translation, @Nullable org.joml.Vector3f scale, @Nullable org.joml.Quaternionf leftRotation, @Nullable org.joml.Quaternionf rightRotation) Creates an instance of aComponentsrecord class.- Parameters:
translation- the value for thetranslationrecord componentscale- the value for thescalerecord componentleftRotation- the value for theleftRotationrecord componentrightRotation- the value for therightRotationrecord 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). -
translation
@Nullable public org.joml.Vector3f translation()Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
scale
@Nullable public org.joml.Vector3f scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
leftRotation
@Nullable public org.joml.Quaternionf leftRotation()Returns the value of theleftRotationrecord component.- Returns:
- the value of the
leftRotationrecord component
-
rightRotation
@Nullable public org.joml.Quaternionf rightRotation()Returns the value of therightRotationrecord component.- Returns:
- the value of the
rightRotationrecord component
-