Package kr.toxicity.model.api.tracker
Record Class ModelRotation
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.ModelRotation
- Record Components:
x- x-rot (pitch)y- y-rot (yaw)
Model rotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelRotationEmpty rotationstatic final ModelRotationInvalid rotation -
Constructor Summary
ConstructorsConstructorDescriptionModelRotation(float x, float y) Creates an instance of aModelRotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.bytepackedX()bytepackedY()@NotNull ModelRotationpitch()floatradianX()floatradianY()final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.@NotNull ModelRotationyaw()
-
Field Details
-
EMPTY
Empty rotation -
INVALID
Invalid rotation
-
-
Constructor Details
-
Method Details
-
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 with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
pitch
-
yaw
-
radianX
public float radianX() -
radianY
public float radianY() -
packedX
public byte packedX() -
packedY
public byte packedY() -
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. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-