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 aRotation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thexRotation
record component.Returns the value of theyRotation
record component.Returns the value of thezRotation
record component.
-
Constructor Details
-
Rotation
Creates an instance of aRotation
record class.- Parameters:
xRotation
- the value for thexRotation
record componentyRotation
- the value for theyRotation
record componentzRotation
- the value for thezRotation
record 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 thexRotation
record component.- Returns:
- the value of the
xRotation
record component
-
yRotation
Returns the value of theyRotation
record component.- Returns:
- the value of the
yRotation
record component
-
zRotation
Returns the value of thezRotation
record component.- Returns:
- the value of the
zRotation
record component
-