Package 

Class VRDirection

  • All Implemented Interfaces:

    
    public class VRDirection
    
                        

    The VR Direction.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final double yaw
      private final double roll
      private final double pitch
    • Constructor Summary

      Constructors 
      Constructor Description
      VRDirection(double pitch, double yaw) Creates a VRDirection.
      VRDirection(double pitch, double roll, double yaw) Creates a VRDirection.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      double getYaw() The yaw.
      double getRoll() The roll.
      double getPitch() The pitch.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VRDirection

        VRDirection(double pitch, double yaw)
        Creates a VRDirection.
        Parameters:
        pitch - The pitch.
        yaw - The yaw.
      • VRDirection

        VRDirection(double pitch, double roll, double yaw)
        Creates a VRDirection.
        Parameters:
        pitch - The pitch.
        roll - The roll.
        yaw - The yaw.
    • Method Detail

      • getYaw

         double getYaw()

        The yaw.

        • The yaw is a rotation around the Z (vertical) axis.
        • Possible values are in range of -180 to 180.
      • getRoll

         double getRoll()

        The roll.

        • The roll is a rotation around the X (front-to-back) axis.
        • Possible values are in range of -180 to 180.
      • getPitch

         double getPitch()

        The pitch.

        • The pitch is a rotation around the Y (side-to-side) axis.
        • Possible values are in range of -180 to 180.