Class Quaternion

java.lang.Object
net.minecraft.util.math.Quaternion

public final class Quaternion extends Object
Mappings:
Namespace Name
official g
intermediary net/minecraft/class_1158
named net/minecraft/util/math/Quaternion
  • Field Details

    • IDENTITY

      public static final Quaternion IDENTITY
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a:Lg;
      intermediary field_21493 Lnet/minecraft/class_1158;field_21493:Lnet/minecraft/class_1158;
      named IDENTITY Lnet/minecraft/util/math/Quaternion;IDENTITY:Lnet/minecraft/util/math/Quaternion;
    • x

      private float x
      Mappings:
      Namespace Name Mixin selector
      official b Lg;b:F
      intermediary field_21582 Lnet/minecraft/class_1158;field_21582:F
      named x Lnet/minecraft/util/math/Quaternion;x:F
    • y

      private float y
      Mappings:
      Namespace Name Mixin selector
      official c Lg;c:F
      intermediary field_21583 Lnet/minecraft/class_1158;field_21583:F
      named y Lnet/minecraft/util/math/Quaternion;y:F
    • z

      private float z
      Mappings:
      Namespace Name Mixin selector
      official d Lg;d:F
      intermediary field_21584 Lnet/minecraft/class_1158;field_21584:F
      named z Lnet/minecraft/util/math/Quaternion;z:F
    • w

      private float w
      Mappings:
      Namespace Name Mixin selector
      official e Lg;e:F
      intermediary field_21585 Lnet/minecraft/class_1158;field_21585:F
      named w Lnet/minecraft/util/math/Quaternion;w:F
  • Constructor Details

    • Quaternion

      public Quaternion(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lg;<init>(FFFF)V
      intermediary <init> Lnet/minecraft/class_1158;<init>(FFFF)V
      named <init> Lnet/minecraft/util/math/Quaternion;<init>(FFFF)V
    • Quaternion

      public Quaternion(Vec3f axis, float rotationAngle, boolean degrees)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lg;<init>(Lk;FZ)V
      intermediary <init> Lnet/minecraft/class_1158;<init>(Lnet/minecraft/class_1160;FZ)V
      named <init> Lnet/minecraft/util/math/Quaternion;<init>(Lnet/minecraft/util/math/Vec3f;FZ)V
    • Quaternion

      public Quaternion(float x, float y, float z, boolean degrees)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lg;<init>(FFFZ)V
      intermediary <init> Lnet/minecraft/class_1158;<init>(FFFZ)V
      named <init> Lnet/minecraft/util/math/Quaternion;<init>(FFFZ)V
    • Quaternion

      public Quaternion(Quaternion other)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lg;<init>(Lg;)V
      intermediary <init> Lnet/minecraft/class_1158;<init>(Lnet/minecraft/class_1158;)V
      named <init> Lnet/minecraft/util/math/Quaternion;<init>(Lnet/minecraft/util/math/Quaternion;)V
  • Method Details

    • method_35821

      public static Quaternion method_35821(float float2, float float3, float float4)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(FFF)Lg;
      intermediary method_35821 Lnet/minecraft/class_1158;method_35821(FFF)Lnet/minecraft/class_1158;
      named method_35821 Lnet/minecraft/util/math/Quaternion;method_35821(FFF)Lnet/minecraft/util/math/Quaternion;
    • method_35823

      public static Quaternion method_35823(Vec3f vec3f)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(Lk;)Lg;
      intermediary method_35823 Lnet/minecraft/class_1158;method_35823(Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
      named method_35823 Lnet/minecraft/util/math/Quaternion;method_35823(Lnet/minecraft/util/math/Vec3f;)Lnet/minecraft/util/math/Quaternion;
    • method_35826

      public static Quaternion method_35826(Vec3f vec3f)
      Mappings:
      Namespace Name Mixin selector
      official b Lg;b(Lk;)Lg;
      intermediary method_35826 Lnet/minecraft/class_1158;method_35826(Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
      named method_35826 Lnet/minecraft/util/math/Quaternion;method_35826(Lnet/minecraft/util/math/Vec3f;)Lnet/minecraft/util/math/Quaternion;
    • method_35825

      public static Quaternion method_35825(float float2, float float3, float float4)
      Mappings:
      Namespace Name Mixin selector
      official b Lg;b(FFF)Lg;
      intermediary method_35825 Lnet/minecraft/class_1158;method_35825(FFF)Lnet/minecraft/class_1158;
      named method_35825 Lnet/minecraft/util/math/Quaternion;method_35825(FFF)Lnet/minecraft/util/math/Quaternion;
    • method_35820

      public Vec3f method_35820()
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a()Lk;
      intermediary method_35820 Lnet/minecraft/class_1158;method_35820()Lnet/minecraft/class_1160;
      named method_35820 Lnet/minecraft/util/math/Quaternion;method_35820()Lnet/minecraft/util/math/Vec3f;
    • method_35824

      public Vec3f method_35824()
      Mappings:
      Namespace Name Mixin selector
      official b Lg;b()Lk;
      intermediary method_35824 Lnet/minecraft/class_1158;method_35824()Lnet/minecraft/class_1160;
      named method_35824 Lnet/minecraft/util/math/Quaternion;method_35824()Lnet/minecraft/util/math/Vec3f;
    • method_35827

      public Vec3f method_35827()
      Mappings:
      Namespace Name Mixin selector
      official c Lg;c()Lk;
      intermediary method_35827 Lnet/minecraft/class_1158;method_35827()Lnet/minecraft/class_1160;
      named method_35827 Lnet/minecraft/util/math/Quaternion;method_35827()Lnet/minecraft/util/math/Vec3f;
    • method_35828

      public Vec3f method_35828()
      Mappings:
      Namespace Name Mixin selector
      official d Lg;d()Lk;
      intermediary method_35828 Lnet/minecraft/class_1158;method_35828()Lnet/minecraft/class_1160;
      named method_35828 Lnet/minecraft/util/math/Quaternion;method_35828()Lnet/minecraft/util/math/Vec3f;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lg;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1158;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/Quaternion;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getX

      public float getX()
      Mappings:
      Namespace Name Mixin selector
      official e Lg;e()F
      intermediary method_4921 Lnet/minecraft/class_1158;method_4921()F
      named getX Lnet/minecraft/util/math/Quaternion;getX()F
    • getY

      public float getY()
      Mappings:
      Namespace Name Mixin selector
      official f Lg;f()F
      intermediary method_4922 Lnet/minecraft/class_1158;method_4922()F
      named getY Lnet/minecraft/util/math/Quaternion;getY()F
    • getZ

      public float getZ()
      Mappings:
      Namespace Name Mixin selector
      official g Lg;g()F
      intermediary method_4923 Lnet/minecraft/class_1158;method_4923()F
      named getZ Lnet/minecraft/util/math/Quaternion;getZ()F
    • getW

      public float getW()
      Mappings:
      Namespace Name Mixin selector
      official h Lg;h()F
      intermediary method_4924 Lnet/minecraft/class_1158;method_4924()F
      named getW Lnet/minecraft/util/math/Quaternion;getW()F
    • hamiltonProduct

      public void hamiltonProduct(Quaternion other)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(Lg;)V
      intermediary method_4925 Lnet/minecraft/class_1158;method_4925(Lnet/minecraft/class_1158;)V
      named hamiltonProduct Lnet/minecraft/util/math/Quaternion;hamiltonProduct(Lnet/minecraft/util/math/Quaternion;)V
    • scale

      public void scale(float scale)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(F)V
      intermediary method_22872 Lnet/minecraft/class_1158;method_22872(F)V
      named scale Lnet/minecraft/util/math/Quaternion;scale(F)V
    • conjugate

      public void conjugate()
      Mappings:
      Namespace Name Mixin selector
      official i Lg;i()V
      intermediary method_4926 Lnet/minecraft/class_1158;method_4926()V
      named conjugate Lnet/minecraft/util/math/Quaternion;conjugate()V
    • set

      public void set(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(FFFF)V
      intermediary method_23758 Lnet/minecraft/class_1158;method_23758(FFFF)V
      named set Lnet/minecraft/util/math/Quaternion;set(FFFF)V
    • cos

      private static float cos(float value)
      Mappings:
      Namespace Name Mixin selector
      official b Lg;b(F)F
      intermediary method_16003 Lnet/minecraft/class_1158;method_16003(F)F
      named cos Lnet/minecraft/util/math/Quaternion;cos(F)F
    • sin

      private static float sin(float value)
      Mappings:
      Namespace Name Mixin selector
      official c Lg;c(F)F
      intermediary method_16002 Lnet/minecraft/class_1158;method_16002(F)F
      named sin Lnet/minecraft/util/math/Quaternion;sin(F)F
    • normalize

      public void normalize()
      Mappings:
      Namespace Name Mixin selector
      official j Lg;j()V
      intermediary method_22873 Lnet/minecraft/class_1158;method_22873()V
      named normalize Lnet/minecraft/util/math/Quaternion;normalize()V
    • method_35822

      public void method_35822(Quaternion quaternion, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lg;a(Lg;F)V
      intermediary method_35822 Lnet/minecraft/class_1158;method_35822(Lnet/minecraft/class_1158;F)V
      named method_35822 Lnet/minecraft/util/math/Quaternion;method_35822(Lnet/minecraft/util/math/Quaternion;F)V
    • copy

      public Quaternion copy()
      Mappings:
      Namespace Name Mixin selector
      official k Lg;k()Lg;
      intermediary method_23695 Lnet/minecraft/class_1158;method_23695()Lnet/minecraft/class_1158;
      named copy Lnet/minecraft/util/math/Quaternion;copy()Lnet/minecraft/util/math/Quaternion;