Record Class Transformation
java.lang.Object
java.lang.Record
org.cube.converter.util.minecraft.Transformation
public record Transformation(org.joml.Vector3f translation, org.joml.Quaternionf left, org.joml.Vector3f scale, org.joml.Quaternionf right)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransformation(org.joml.Vector3f translation, org.joml.Quaternionf left, org.joml.Vector3f scale, org.joml.Quaternionf right) Creates an instance of aTransformationrecord 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.Quaternionfleft()Returns the value of theleftrecord component.org.joml.Quaternionfright()Returns the value of therightrecord component.org.joml.Vector3fscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.org.joml.Vector3fReturns the value of thetranslationrecord component.
-
Constructor Details
-
Transformation
public Transformation(org.joml.Vector3f translation, org.joml.Quaternionf left, org.joml.Vector3f scale, org.joml.Quaternionf right) Creates an instance of aTransformationrecord class.- Parameters:
translation- the value for thetranslationrecord componentleft- the value for theleftrecord componentscale- the value for thescalerecord componentright- the value for therightrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
public org.joml.Vector3f translation()Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
left
public org.joml.Quaternionf left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
scale
public org.joml.Vector3f scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
right
public org.joml.Quaternionf right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-