Quat.FromAngles
static Quat FromAngles(float pitchXDeg, float yawYDeg, float rollZDeg)
Creates a Roll/Pitch/Yaw rotation (applied in that order) from the provided angles in degrees!
float pitchXDeg | Pitch is rotation around the x axis, measured in degrees. |
float yawYDeg | Yaw is rotation around the y axis, measured in degrees. |
float rollZDeg | Roll is rotation around the z axis, measured in degrees. |
RETURNS: Quat | A quaternion representing the given Roll/Pitch/Yaw rotation! |
static Quat FromAngles(Vec3 pitchYawRollDeg)
Creates a Roll/Pitch/Yaw rotation (applied in that order) from the provided angles in degrees!
Vec3 pitchYawRollDeg | Pitch, yaw, and roll stored as X, Y, and Z in this Vector. Angle values are in degrees. |
RETURNS: Quat | A quaternion representing the given Roll/Pitch/Yaw rotation! |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!