vector: note what each component in spherical corresponds to

This commit is contained in:
Danny Robson 2018-03-27 16:11:49 +11:00
parent 951b160d0d
commit 5532f90de7

View File

@ -86,7 +86,7 @@ namespace util {
}
// convert vector in cartesian coordinates (x,y,z) to spherical
// coordinates (r,theta,phi) with theta inclination and phi azimuth.
// coordinates (r,inclination,azimuth) with theta inclination and phi azimuth.
template <typename T>
constexpr vector<3,T>
cartesian_to_spherical (vector<3,T> c)