vector: clarify spherical components

This commit is contained in:
Danny Robson 2018-04-05 19:22:38 +10:00
parent 3748b77500
commit d1da97f213

View File

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