Java com.badlogic.gdx.math Quaternion fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.math Quaternion fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.math Quaternion.

The text is from its open source code.

Constructor

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.

Method

floatgetPitch()
Get the pitch euler angle in degrees, which is the rotation around the x axis.
floatgetRoll()
Get the roll euler angle in degrees, which is the rotation around the z axis.
floatgetYaw()
Get the yaw euler angle in degrees, which is the rotation around the y axis.
Quaternionset(Quaternion quaternion)
Sets the quaternion components from the given quaternion.
QuaternionsetEulerAngles(float yaw, float pitch, float roll)
Sets the quaternion to the given euler angles in degrees.
Vector3transform(Vector3 v)
Transforms the given vector using this quaternion