Record Class Rotation
public record Rotation(BigDecimal xRotation, BigDecimal yRotation, BigDecimal zRotation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRotation(BigDecimal xRotation, BigDecimal yRotation, BigDecimal zRotation) Creates an instance of aRotationrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of thexRotationrecord component.Returns the value of theyRotationrecord component.Returns the value of thezRotationrecord component.
-
Constructor Details
-
Rotation
Creates an instance of aRotationrecord class.- Parameters:
xRotation- the value for thexRotationrecord componentyRotation- the value for theyRotationrecord componentzRotation- the value for thezRotationrecord component
-
-
Method Details
-
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). -
xRotation
Returns the value of thexRotationrecord component.- Returns:
- the value of the
xRotationrecord component
-
yRotation
Returns the value of theyRotationrecord component.- Returns:
- the value of the
yRotationrecord component
-
zRotation
Returns the value of thezRotationrecord component.- Returns:
- the value of the
zRotationrecord component
-