Package net.minecraft.util.math
Record Class GivensPair
java.lang.Object
java.lang.Record
net.minecraft.util.math.GivensPair
- Record Components:
sinHalf-cosHalf-
A pair of
sin(θ) and cos(θ) used in Givens quaternion.- Mappings:
Namespace Name official eintermediary net/minecraft/class_8218named net/minecraft/util/math/GivensPairofficial aintermediary comp_1317named sinHalfofficial bintermediary comp_1318named cosHalf
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatcosHalf()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.method_49728(Matrix3f matrix3f) method_49729(Quaternionf quaternionf) method_49731(Matrix3f matrix3f) method_49732(Quaternionf quaternionf) method_49734(Matrix3f matrix3f) method_49735(Quaternionf quaternionf) static GivensPairnormalize(float a, float b) floatfloatsinHalf()Returns the value of thesinHalfrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
GivensPair
public GivensPair(float float2, float float3)
-
-
Method Details
-
normalize
- Mappings:
Namespace Name Mixin selector official aLe;a(FF)Le;intermediary method_49727Lnet/minecraft/class_8218;method_49727(FF)Lnet/minecraft/class_8218;named normalizeLnet/minecraft/util/math/GivensPair;normalize(FF)Lnet/minecraft/util/math/GivensPair;
-
fromAngle
- Mappings:
Namespace Name Mixin selector official aLe;a(F)Le;intermediary method_49726Lnet/minecraft/class_8218;method_49726(F)Lnet/minecraft/class_8218;named fromAngleLnet/minecraft/util/math/GivensPair;fromAngle(F)Lnet/minecraft/util/math/GivensPair;
-
negateSin
- Mappings:
Namespace Name Mixin selector official aLe;a()Le;intermediary method_49725Lnet/minecraft/class_8218;method_49725()Lnet/minecraft/class_8218;named negateSinLnet/minecraft/util/math/GivensPair;negateSin()Lnet/minecraft/util/math/GivensPair;
-
method_49729
- Mappings:
Namespace Name Mixin selector official aLe;a(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;intermediary method_49729Lnet/minecraft/class_8218;method_49729(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;named method_49729Lnet/minecraft/util/math/GivensPair;method_49729(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
method_49732
- Mappings:
Namespace Name Mixin selector official bLe;b(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;intermediary method_49732Lnet/minecraft/class_8218;method_49732(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;named method_49732Lnet/minecraft/util/math/GivensPair;method_49732(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
method_49735
- Mappings:
Namespace Name Mixin selector official cLe;c(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;intermediary method_49735Lnet/minecraft/class_8218;method_49735(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;named method_49735Lnet/minecraft/util/math/GivensPair;method_49735(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
cosDouble
public float cosDouble()- Mappings:
Namespace Name Mixin selector official bLe;b()Fintermediary method_49730Lnet/minecraft/class_8218;method_49730()Fnamed cosDoubleLnet/minecraft/util/math/GivensPair;cosDouble()F
-
sinDouble
public float sinDouble()- Mappings:
Namespace Name Mixin selector official cLe;c()Fintermediary method_49733Lnet/minecraft/class_8218;method_49733()Fnamed sinDoubleLnet/minecraft/util/math/GivensPair;sinDouble()F
-
method_49728
- Mappings:
Namespace Name Mixin selector official aLe;a(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;intermediary method_49728Lnet/minecraft/class_8218;method_49728(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;named method_49728Lnet/minecraft/util/math/GivensPair;method_49728(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
-
method_49731
- Mappings:
Namespace Name Mixin selector official bLe;b(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;intermediary method_49731Lnet/minecraft/class_8218;method_49731(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;named method_49731Lnet/minecraft/util/math/GivensPair;method_49731(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
-
method_49734
- Mappings:
Namespace Name Mixin selector official cLe;c(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;intermediary method_49734Lnet/minecraft/class_8218;method_49734(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;named method_49734Lnet/minecraft/util/math/GivensPair;method_49734(Lorg/joml/Matrix3f;)Lorg/joml/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
-