title: Quaternion to Roll Pitch Yaw
body: <p>Where can I find a function (preferably written in php), that converts Quaternion rotation to 3D rotation (Roll Pitch Yaw) AND also solves gimbal lock problem (does not return NaN at gimbal lock angles). Thanks</p>