public class VRDirection extends Object
Constructor and Description |
---|
VRDirection(double pitch,
double yaw)
Creates a VRDirection.
|
VRDirection(double pitch,
double roll,
double yaw)
Creates a VRDirection.
|
Modifier and Type | Method and Description |
---|---|
double |
getPitch()
The pitch.
|
double |
getRoll()
The roll.
|
double |
getYaw()
The yaw.
|
String |
toString() |
public VRDirection(double pitch, double yaw)
pitch
- The pitch.yaw
- The yaw.- The pitch is a rotation around the Y (side-to-side) axis. - The yaw is a rotation around the Z (vertical) axis.
public VRDirection(double pitch, double roll, double yaw)
pitch
- The pitch.roll
- The roll.yaw
- The yaw.- The pitch is a rotation around the Y (side-to-side) axis. - The roll is a rotation around the X (front-to-back) axis. - The yaw is a rotation around the Z (vertical) axis.
public double getPitch()
- The pitch is a rotation around the Y (side-to-side) axis. - Possible values are in range of -180 to 180.
public double getRoll()
- The roll is a rotation around the X (front-to-back) axis. - Possible values are in range of -180 to 180.
public double getYaw()
- The yaw is a rotation around the Z (vertical) axis. - Possible values are in range of -180 to 180.