vector: clarify spherical components
This commit is contained in:
parent
3748b77500
commit
d1da97f213
@ -86,7 +86,8 @@ namespace util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// convert vector in cartesian coordinates (x,y,z) to spherical
|
// 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>
|
template <typename T>
|
||||||
constexpr vector<3,T>
|
constexpr vector<3,T>
|
||||||
cartesian_to_spherical (vector<3,T> c)
|
cartesian_to_spherical (vector<3,T> c)
|
||||||
|
Loading…
Reference in New Issue
Block a user