Package com.mojang.math
Record Class GivensParameters
java.lang.Object
java.lang.Record
com.mojang.math.GivensParameters
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGivensParameters(float sinHalf, float cosHalf) Creates an instance of aGivensParametersrecord class. -
Method Summary
Modifier 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
-
sinHalf
private final float sinHalfThe field for thesinHalfrecord component. -
cosHalf
private final float cosHalfThe field for thecosHalfrecord component.
-
-
Constructor Details
-
GivensParameters
public GivensParameters(float sinHalf, float cosHalf) Creates an instance of aGivensParametersrecord class.- Parameters:
sinHalf- the value for thesinHalfrecord componentcosHalf- the value for thecosHalfrecord component
-
-
Method Details
-
fromUnnormalized
-
fromPositiveAngle
-
inverse
-
aroundX
public org.joml.Quaternionf aroundX(org.joml.Quaternionf p_276271_) -
aroundY
public org.joml.Quaternionf aroundY(org.joml.Quaternionf p_276323_) -
aroundZ
public org.joml.Quaternionf aroundZ(org.joml.Quaternionf p_276281_) -
cos
public float cos() -
sin
public float sin() -
aroundX
public org.joml.Matrix3f aroundX(org.joml.Matrix3f p_276268_) -
aroundY
public org.joml.Matrix3f aroundY(org.joml.Matrix3f p_276274_) -
aroundZ
public org.joml.Matrix3f aroundZ(org.joml.Matrix3f p_276317_) -
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 with '=='. -
sinHalf
public float sinHalf()Returns the value of thesinHalfrecord component.- Returns:
- the value of the
sinHalfrecord component
-
cosHalf
public float cosHalf()Returns the value of thecosHalfrecord component.- Returns:
- the value of the
cosHalfrecord component
-