vector: use atan2 for spherical conversions
This commit is contained in:
parent
a8b4c93ccd
commit
a8b6184e65
@ -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)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user