Record Class GivensPair
java.lang.Object
java.lang.Record
org.cube.converter.util.math.matrix.GivensPair
-
Constructor Summary
ConstructorsConstructorDescriptionGivensPair(float sinHalf, float cosHalf) Creates an instance of aGivensPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatcosFloat()floatcosHalf()Returns the value of thecosHalfrecord component.final booleanIndicates whether some other object is "equal to" this one.static GivensPairfromAngle(float radians) final inthashCode()Returns a hash code value for this object.static GivensPairnormalize(float a, float b) org.joml.Matrix3fsetRotationX(org.joml.Matrix3f matrix3f) org.joml.Matrix3fsetRotationY(org.joml.Matrix3f matrix3f) org.joml.Matrix3fsetRotationZ(org.joml.Matrix3f matrix3f) org.joml.QuaternionfsetXRotation(org.joml.Quaternionf quaternionf) org.joml.QuaternionfsetYRotation(org.joml.Quaternionf quaternionf) org.joml.QuaternionfsetZRotation(org.joml.Quaternionf quaternionf) floatsinFloat()floatsinHalf()Returns the value of thesinHalfrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GivensPair
public GivensPair(float sinHalf, float cosHalf) Creates an instance of aGivensPairrecord class.- Parameters:
sinHalf- the value for thesinHalfrecord componentcosHalf- the value for thecosHalfrecord component
-
-
Method Details
-
normalize
-
fromAngle
-
negateSin
-
setXRotation
public org.joml.Quaternionf setXRotation(org.joml.Quaternionf quaternionf) -
setYRotation
public org.joml.Quaternionf setYRotation(org.joml.Quaternionf quaternionf) -
setZRotation
public org.joml.Quaternionf setZRotation(org.joml.Quaternionf quaternionf) -
cosFloat
public float cosFloat() -
sinFloat
public float sinFloat() -
setRotationX
public org.joml.Matrix3f setRotationX(org.joml.Matrix3f matrix3f) -
setRotationY
public org.joml.Matrix3f setRotationY(org.joml.Matrix3f matrix3f) -
setRotationZ
public org.joml.Matrix3f setRotationZ(org.joml.Matrix3f matrix3f) -
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
-