Function lupnt::EulerAnglesToQuatCoeff

Function Documentation

Vec4 lupnt::EulerAnglesToQuatCoeff(Vec3 euler)

Convert euler angles to a quaternion.

Parameters:

euler – Vec3 euler angles [phi, theta, psi] = [roll, pitch, yaw] (radians) sequence (XYZ)

Returns:

Vec4 quaternion [q0, q1, q2, q3] = [scalar, vector]