Class Quaternion

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

public final class Quaternion extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private float
     
    private float
     
    private float
     
    static final Quaternion
     
    private float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Quaternion(float p_i48102_1_, float p_i48102_2_, float p_i48102_3_, boolean p_i48102_4_)
     
    Quaternion(float p_i48100_1_, float p_i48100_2_, float p_i48100_3_, float p_i48100_4_)
     
    Quaternion(Quaternion p_i48103_1_)
     
    Quaternion(Vector3f p_i48101_1_, float p_i48101_2_, boolean p_i48101_3_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    private static float
    cos(float p_214904_0_)
     
    boolean
    equals(Object p_equals_1_)
     
    int
     
    float
    i()
     
    float
    j()
     
    float
    k()
     
    void
    mul(float p_227065_1_)
     
    void
    mul(Quaternion p_195890_1_)
     
    void
     
    float
    r()
     
    void
    set(float p_227066_1_, float p_227066_2_, float p_227066_3_, float p_227066_4_)
     
    private static float
    sin(float p_214903_0_)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ONE

      public static final Quaternion ONE
    • i

      private float i
    • j

      private float j
    • k

      private float k
    • r

      private float r
  • Constructor Details

    • Quaternion

      public Quaternion(float p_i48100_1_, float p_i48100_2_, float p_i48100_3_, float p_i48100_4_)
    • Quaternion

      public Quaternion(Vector3f p_i48101_1_, float p_i48101_2_, boolean p_i48101_3_)
    • Quaternion

      public Quaternion(float p_i48102_1_, float p_i48102_2_, float p_i48102_3_, boolean p_i48102_4_)
    • Quaternion

      public Quaternion(Quaternion p_i48103_1_)
  • Method Details

    • equals

      public boolean equals(Object p_equals_1_)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public float i()
    • j

      public float j()
    • k

      public float k()
    • r

      public float r()
    • mul

      public void mul(Quaternion p_195890_1_)
    • mul

      public void mul(float p_227065_1_)
    • conj

      public void conj()
    • set

      public void set(float p_227066_1_, float p_227066_2_, float p_227066_3_, float p_227066_4_)
    • cos

      private static float cos(float p_214904_0_)
    • sin

      private static float sin(float p_214903_0_)
    • normalize

      public void normalize()
    • copy

      public Quaternion copy()