Converts spherical coordinates to a Cartesian Vec3 (Three.js / OpenGL convention): x = r * sin(phi) * sin(theta) y = r * cos(phi) z = r * sin(phi) * cos(theta)
the receiving Vec3
the source Spherical
out
Converts spherical coordinates to a Cartesian Vec3 (Three.js / OpenGL convention): x = r * sin(phi) * sin(theta) y = r * cos(phi) z = r * sin(phi) * cos(theta)