Class Quaternion


  • public final class Quaternion
    extends Object
    This class represent a quaternion.
    Author:
    Gregory Van den Borre
    • Field Detail

      • w

        public final float w
        W value.
      • x

        public final float x
        X value.
      • y

        public final float y
        Y value.
      • z

        public final float z
        Z value.
    • Method Detail

      • valueOf

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

        public Quaternion multiply​(Quaternion q2)
        Build a new Quaternion resulting from the multiplication of an other quaternion.
        Parameters:
        q2 - 2nd quaternion to use.
        Returns:
        the newly build Quaternion.