Package com.mojang.math
Record Class GivensParameters
java.lang.Object
java.lang.Record
com.mojang.math.GivensParameters
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionGivensParameters(float sinHalf, float cosHalf) Creates an instance of aGivensParametersrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionorg.joml.Matrix3faroundX(org.joml.Matrix3f p_276268_) org.joml.QuaternionfaroundX(org.joml.Quaternionf p_276271_) org.joml.Matrix3faroundY(org.joml.Matrix3f p_276274_) org.joml.QuaternionfaroundY(org.joml.Quaternionf p_276323_) org.joml.Matrix3faroundZ(org.joml.Matrix3f p_276317_) org.joml.QuaternionfaroundZ(org.joml.Quaternionf p_276281_) floatcos()floatcosHalf()Returns the value of thecosHalfrecord component.final booleanIndicates whether some other object is "equal to" this one.static GivensParametersfromPositiveAngle(float p_276260_) static GivensParametersfromUnnormalized(float p_276277_, float p_276305_) final inthashCode()Returns a hash code value for this object.inverse()floatsin()floatsinHalf()Returns the value of thesinHalfrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
sinHalfprivate final float sinHalfThe field for thesinHalfrecord component.
- 
cosHalfprivate final float cosHalfThe field for thecosHalfrecord component.
 
- 
- 
Constructor Details- 
GivensParameterspublic GivensParameters(float sinHalf, float cosHalf) Creates an instance of aGivensParametersrecord class.- Parameters:
- sinHalf- the value for the- sinHalfrecord component
- cosHalf- the value for the- cosHalfrecord component
 
 
- 
- 
Method Details- 
fromUnnormalized
- 
fromPositiveAngle
- 
inverse
- 
aroundXpublic org.joml.Quaternionf aroundX(org.joml.Quaternionf p_276271_) 
- 
aroundYpublic org.joml.Quaternionf aroundY(org.joml.Quaternionf p_276323_) 
- 
aroundZpublic org.joml.Quaternionf aroundZ(org.joml.Quaternionf p_276281_) 
- 
cospublic float cos()
- 
sinpublic float sin()
- 
aroundXpublic org.joml.Matrix3f aroundX(org.joml.Matrix3f p_276268_) 
- 
aroundYpublic org.joml.Matrix3f aroundY(org.joml.Matrix3f p_276274_) 
- 
aroundZpublic org.joml.Matrix3f aroundZ(org.joml.Matrix3f p_276317_) 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
sinHalfpublic float sinHalf()Returns the value of thesinHalfrecord component.- Returns:
- the value of the sinHalfrecord component
 
- 
cosHalfpublic float cosHalf()Returns the value of thecosHalfrecord component.- Returns:
- the value of the cosHalfrecord component
 
 
-