Class Quaternion

java.lang.Object
org.vrspace.server.obj.Quaternion

public class Quaternion extends Object
Easier than Rotation to propagate quaternions, as it follows quaternion naming convention (w rather than angle).
Author:
joe
  • Constructor Details

    • Quaternion

      public Quaternion()
    • Quaternion

      public Quaternion(double x, double y, double z, double w)
  • Method Details

    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getW

      public double getW()
    • setX

      public void setX(double x)
    • setY

      public void setY(double y)
    • setZ

      public void setZ(double z)
    • setW

      public void setW(double w)
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object