Example usage for Java com.badlogic.gdx.math Quaternion fields, constructors, methods, implement or subclass
The text is from its open source code.
Quaternion(Vector3 axis, float angle) Constructor, sets the quaternion from the given axis vector and the angle around that axis in degrees. | |
Quaternion() | |
Quaternion(float x, float y, float z, float w) Constructor, sets the four components of the quaternion. | |
Quaternion(Quaternion quaternion) Constructor, sets the quaternion components from the given quaternion. |
float | getPitch() Get the pitch euler angle in degrees, which is the rotation around the x axis. |
float | getRoll() Get the roll euler angle in degrees, which is the rotation around the z axis. |
float | getYaw() Get the yaw euler angle in degrees, which is the rotation around the y axis. |
Quaternion | set(Quaternion quaternion) Sets the quaternion components from the given quaternion. |
Quaternion | setEulerAngles(float yaw, float pitch, float roll) Sets the quaternion to the given euler angles in degrees. |
Vector3 | transform(Vector3 v) Transforms the given vector using this quaternion |