Package com.mojang.math
Record Class GivensParameters
java.lang.Object
java.lang.Record
com.mojang.math.GivensParameters
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGivensParameters
(float sinHalf, float cosHalf) Creates an instance of aGivensParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Matrix3f
aroundX
(org.joml.Matrix3f p_276268_) org.joml.Quaternionf
aroundX
(org.joml.Quaternionf p_276271_) org.joml.Matrix3f
aroundY
(org.joml.Matrix3f p_276274_) org.joml.Quaternionf
aroundY
(org.joml.Quaternionf p_276323_) org.joml.Matrix3f
aroundZ
(org.joml.Matrix3f p_276317_) org.joml.Quaternionf
aroundZ
(org.joml.Quaternionf p_276281_) float
cos()
float
cosHalf()
Returns the value of thecosHalf
record component.final boolean
Indicates whether some other object is "equal to" this one.static GivensParameters
fromPositiveAngle
(float p_276260_) static GivensParameters
fromUnnormalized
(float p_276277_, float p_276305_) final int
hashCode()
Returns a hash code value for this object.inverse()
float
sin()
float
sinHalf()
Returns the value of thesinHalf
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sinHalf
private final float sinHalfThe field for thesinHalf
record component. -
cosHalf
private final float cosHalfThe field for thecosHalf
record component.
-
-
Constructor Details
-
GivensParameters
public GivensParameters(float sinHalf, float cosHalf) Creates an instance of aGivensParameters
record class.- Parameters:
sinHalf
- the value for thesinHalf
record componentcosHalf
- the value for thecosHalf
record 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 thesinHalf
record component.- Returns:
- the value of the
sinHalf
record component
-
cosHalf
public float cosHalf()Returns the value of thecosHalf
record component.- Returns:
- the value of the
cosHalf
record component
-