Class Quaternion

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

public final class Quaternion
extends Object
  • Field Details

    • IDENTITY

      public static final Quaternion IDENTITY
    • x

      private float x
    • y

      private float y
    • z

      private float z
    • w

      private float w
  • Constructor Details

    • Quaternion

      public Quaternion​(float x, float y, float z, float w)
    • Quaternion

      public Quaternion​(Vector3f axis, float rotationAngle, boolean degrees)
    • Quaternion

      @Environment(CLIENT) public Quaternion​(float x, float y, float z, boolean degrees)
    • Quaternion

      public Quaternion​(Quaternion other)
  • Method Details

    • equals

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

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

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

      public float getX()
    • getY

      public float getY()
    • getZ

      public float getZ()
    • getW

      public float getW()
    • hamiltonProduct

      public void hamiltonProduct​(Quaternion other)
    • scale

      @Environment(CLIENT) public void scale​(float scale)
    • conjugate

      public void conjugate()
    • set

      @Environment(CLIENT) public void set​(float x, float y, float z, float w)
    • cos

      private static float cos​(float value)
    • sin

      private static float sin​(float value)
    • normalize

      @Environment(CLIENT) public void normalize()
    • copy

      @Environment(CLIENT) public Quaternion copy()