Class Quaternion

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

public final class Quaternion
extends Object
Mappings:
Namespace Name
official d
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 Ld;a:Ld;
      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 Ld;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 Ld;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 Ld;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 Ld;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> Ld;<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> Ld;<init>(Lg;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

      @Environment(CLIENT) public Quaternion​(float x, float y, float z, boolean degrees)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ld;<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> Ld;<init>(Ld;)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

    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ld;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Ld;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1158;hashCode()I
      named hashCode Lnet/minecraft/util/math/Quaternion;hashCode()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Ld;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1158;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/math/Quaternion;toString()Ljava/lang/String;
    • getX

      public float getX()
      Mappings:
      Namespace Name Mixin selector
      official a Ld;a()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 b Ld;b()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 c Ld;c()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 d Ld;d()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 Ld;a(Ld;)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

      @Environment(CLIENT) public void scale​(float scale)
      Mappings:
      Namespace Name Mixin selector
      official a Ld;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 e Ld;e()V
      intermediary method_4926 Lnet/minecraft/class_1158;method_4926()V
      named conjugate Lnet/minecraft/util/math/Quaternion;conjugate()V
    • set

      @Environment(CLIENT) public void set​(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official a Ld;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 Ld;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 Ld;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

      @Environment(CLIENT) public void normalize()
      Mappings:
      Namespace Name Mixin selector
      official f Ld;f()V
      intermediary method_22873 Lnet/minecraft/class_1158;method_22873()V
      named normalize Lnet/minecraft/util/math/Quaternion;normalize()V
    • copy

      @Environment(CLIENT) public Quaternion copy()
      Mappings:
      Namespace Name Mixin selector
      official g Ld;g()Ld;
      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;