Class Quaternion

java.lang.Object
dev.zwazel.internal.game.transform.Quaternion

public class Quaternion extends Object
Game (right-handed coordinate system): forward = +z, up = +y, right = –x.
  • Constructor Details

    • Quaternion

      public Quaternion(double[] values)
  • Method Details

    • fromAxisAngle

      public static Quaternion fromAxisAngle(double x, double y, double z, double angle)
    • multiply

      public Quaternion multiply(Quaternion other)
    • multiply

      public Vec3 multiply(Vec3 v)
    • conjugate

      public Quaternion conjugate()
    • apply

      public Vec3 apply(Vec3 v)
    • forward

      public Vec3 forward()
    • up

      public Vec3 up()
    • right

      public Vec3 right()
    • backward

      public Vec3 backward()
    • down

      public Vec3 down()
    • left

      public Vec3 left()
    • getPitch

      public double getPitch()
    • getYaw

      public double getYaw()