Record Class GivensPair

java.lang.Object
java.lang.Record
net.minecraft.util.math.GivensPair
Record Components:
sinHalf -
cosHalf -

public record GivensPair(float sinHalf, float cosHalf) extends Record
A pair of sin(θ) and cos(θ) used in Givens quaternion.
Mappings:
Namespace Name
official e
intermediary net/minecraft/class_8218
named net/minecraft/util/math/GivensPair
official a
intermediary comp_1317
named sinHalf
official b
intermediary comp_1318
named cosHalf
  • Field Details

    • sinHalf

      private final float sinHalf
      The field for the sinHalf record component.
    • cosHalf

      private final float cosHalf
      The field for the cosHalf record component.
  • Constructor Details

    • GivensPair

      public GivensPair(float float2, float float3)
  • Method Details

    • normalize

      public static GivensPair normalize(float a, float b)
      Mappings:
      Namespace Name Mixin selector
      official a Le;a(FF)Le;
      intermediary method_49727 Lnet/minecraft/class_8218;method_49727(FF)Lnet/minecraft/class_8218;
      named normalize Lnet/minecraft/util/math/GivensPair;normalize(FF)Lnet/minecraft/util/math/GivensPair;
    • fromAngle

      public static GivensPair fromAngle(float radians)
      Mappings:
      Namespace Name Mixin selector
      official a Le;a(F)Le;
      intermediary method_49726 Lnet/minecraft/class_8218;method_49726(F)Lnet/minecraft/class_8218;
      named fromAngle Lnet/minecraft/util/math/GivensPair;fromAngle(F)Lnet/minecraft/util/math/GivensPair;
    • negateSin

      public GivensPair negateSin()
      Mappings:
      Namespace Name Mixin selector
      official a Le;a()Le;
      intermediary method_49725 Lnet/minecraft/class_8218;method_49725()Lnet/minecraft/class_8218;
      named negateSin Lnet/minecraft/util/math/GivensPair;negateSin()Lnet/minecraft/util/math/GivensPair;
    • method_49729

      public Quaternionf method_49729(Quaternionf quaternionf)
      Mappings:
      Namespace Name Mixin selector
      official a Le;a(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      intermediary method_49729 Lnet/minecraft/class_8218;method_49729(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      named method_49729 Lnet/minecraft/util/math/GivensPair;method_49729(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
    • method_49732

      public Quaternionf method_49732(Quaternionf quaternionf)
      Mappings:
      Namespace Name Mixin selector
      official b Le;b(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      intermediary method_49732 Lnet/minecraft/class_8218;method_49732(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      named method_49732 Lnet/minecraft/util/math/GivensPair;method_49732(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
    • method_49735

      public Quaternionf method_49735(Quaternionf quaternionf)
      Mappings:
      Namespace Name Mixin selector
      official c Le;c(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      intermediary method_49735 Lnet/minecraft/class_8218;method_49735(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
      named method_49735 Lnet/minecraft/util/math/GivensPair;method_49735(Lorg/joml/Quaternionf;)Lorg/joml/Quaternionf;
    • cosDouble

      public float cosDouble()
      Mappings:
      Namespace Name Mixin selector
      official b Le;b()F
      intermediary method_49730 Lnet/minecraft/class_8218;method_49730()F
      named cosDouble Lnet/minecraft/util/math/GivensPair;cosDouble()F
    • sinDouble

      public float sinDouble()
      Mappings:
      Namespace Name Mixin selector
      official c Le;c()F
      intermediary method_49733 Lnet/minecraft/class_8218;method_49733()F
      named sinDouble Lnet/minecraft/util/math/GivensPair;sinDouble()F
    • method_49728

      public Matrix3f method_49728(Matrix3f matrix3f)
      Mappings:
      Namespace Name Mixin selector
      official a Le;a(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      intermediary method_49728 Lnet/minecraft/class_8218;method_49728(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      named method_49728 Lnet/minecraft/util/math/GivensPair;method_49728(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
    • method_49731

      public Matrix3f method_49731(Matrix3f matrix3f)
      Mappings:
      Namespace Name Mixin selector
      official b Le;b(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      intermediary method_49731 Lnet/minecraft/class_8218;method_49731(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      named method_49731 Lnet/minecraft/util/math/GivensPair;method_49731(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
    • method_49734

      public Matrix3f method_49734(Matrix3f matrix3f)
      Mappings:
      Namespace Name Mixin selector
      official c Le;c(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      intermediary method_49734 Lnet/minecraft/class_8218;method_49734(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
      named method_49734 Lnet/minecraft/util/math/GivensPair;method_49734(Lorg/joml/Matrix3f;)Lorg/joml/Matrix3f;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sinHalf

      public float sinHalf()
      Returns the value of the sinHalf record component.
      Returns:
      the value of the sinHalf record component
    • cosHalf

      public float cosHalf()
      Returns the value of the cosHalf record component.
      Returns:
      the value of the cosHalf record component