vector: use atan2 for spherical conversions

This commit is contained in:
Danny Robson 2018-01-17 17:44:45 +11:00
parent a8b4c93ccd
commit a8b6184e65

View File

@ -80,7 +80,7 @@ namespace util {
return { return {
r, r,
std::acos (c.z / r), std::acos (c.z / r),
std::atan (c.y / c.z) std::atan2 (c.y, c.x)
}; };
} }