quaternion rule
that's just spherical coordinates
also, what monster uses φ for the polar angle and θ for azimuth?