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 named net/minecraft/util/math/GivensPair
intermediary net/minecraft/class_8218
official e
named sinHalf
intermediary comp_1317
official a
named cosHalf
intermediary comp_1318
official b
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
cosHalf()
Returns the value of thecosHalf
record component.final boolean
Indicates whether some other object is "equal to" this one.static GivensPair
fromAngle
(float radians) final int
hashCode()
Returns a hash code value for this object.static GivensPair
normalize
(float a, float b) setRotationX
(Matrix3f matrix3f) setRotationY
(Matrix3f matrix3f) setRotationZ
(Matrix3f matrix3f) setXRotation
(Quaternionf quaternionf) setYRotation
(Quaternionf quaternionf) setZRotation
(Quaternionf quaternionf) float
float
sinHalf()
Returns the value of thesinHalf
record component.final String
toString()
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 named normalize
Lnet/minecraft/util/math/GivensPair;normalize(FF)Lnet/minecraft/util/math/GivensPair;
intermediary method_49727
Lnet/minecraft/class_8218;method_49727(FF)Lnet/minecraft/class_8218;
official a
Le;a(FF)Le;
-
fromAngle
- Mappings:
Namespace Name Mixin selector named fromAngle
Lnet/minecraft/util/math/GivensPair;fromAngle(F)Lnet/minecraft/util/math/GivensPair;
intermediary method_49726
Lnet/minecraft/class_8218;method_49726(F)Lnet/minecraft/class_8218;
official a
Le;a(F)Le;
-
negateSin
- Mappings:
Namespace Name Mixin selector named negateSin
Lnet/minecraft/util/math/GivensPair;negateSin()Lnet/minecraft/util/math/GivensPair;
intermediary method_49725
Lnet/minecraft/class_8218;method_49725()Lnet/minecraft/class_8218;
official a
Le;a()Le;
-
setXRotation
- Mappings:
Namespace Name Mixin selector named setXRotation
Lnet/minecraft/util/math/GivensPair;setXRotation(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
intermediary method_49729
Lnet/minecraft/class_8218;method_49729(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
official a
Le;a(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
setYRotation
- Mappings:
Namespace Name Mixin selector named setYRotation
Lnet/minecraft/util/math/GivensPair;setYRotation(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
intermediary method_49732
Lnet/minecraft/class_8218;method_49732(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
official b
Le;b(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
setZRotation
- Mappings:
Namespace Name Mixin selector named setZRotation
Lnet/minecraft/util/math/GivensPair;setZRotation(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
intermediary method_49735
Lnet/minecraft/class_8218;method_49735(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
official c
Le;c(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
-
cosDouble
public float cosDouble()- Mappings:
Namespace Name Mixin selector named cosDouble
Lnet/minecraft/util/math/GivensPair;cosDouble()F
intermediary method_49730
Lnet/minecraft/class_8218;method_49730()F
official b
Le;b()F
-
sinDouble
public float sinDouble()- Mappings:
Namespace Name Mixin selector named sinDouble
Lnet/minecraft/util/math/GivensPair;sinDouble()F
intermediary method_49733
Lnet/minecraft/class_8218;method_49733()F
official c
Le;c()F
-
setRotationX
- Mappings:
Namespace Name Mixin selector named setRotationX
Lnet/minecraft/util/math/GivensPair;setRotationX(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
intermediary method_49728
Lnet/minecraft/class_8218;method_49728(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
official a
Le;a(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
-
setRotationY
- Mappings:
Namespace Name Mixin selector named setRotationY
Lnet/minecraft/util/math/GivensPair;setRotationY(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
intermediary method_49731
Lnet/minecraft/class_8218;method_49731(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
official b
Le;b(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
-
setRotationZ
- Mappings:
Namespace Name Mixin selector named setRotationZ
Lnet/minecraft/util/math/GivensPair;setRotationZ(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
intermediary method_49734
Lnet/minecraft/class_8218;method_49734(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
official c
Le;c(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 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
-