|
| SphereCoord (const C &theta=C(1, 0), const C &phi=C(1, 0)) |
|
template<class U > |
| SphereCoord (const Vec< 3, U > &v) |
|
SphereCoord | operator- () const |
| Get negation in Cartesian space.
|
|
SphereCoord & | operator*= (T v) |
|
SphereCoord | operator* (T v) const |
|
T | radius () const |
| Get radius.
|
|
Vec< 3, T > | toCart () const |
| Returns Cartesian coordinate.
|
|
SphereCoord & | fromAngle (const T &theta, const T &phi, const T &radius=T(1)) |
| Set from two angles, in radians, and radius. More...
|
|
template<class U > |
SphereCoord & | fromCart (const Vec< 3, U > &v) |
| Set from Cartesian coordinate.
|
|
template<class T>
class al::SphereCoord< T >
Spherical coordinate in terms of two complex numbers.
The first component, theta, is the angle on the x-y plane and the second component, phi, is the angle from the +z axis. The magnitude of theta should always be 1, while the magnitude of phi is the radius.
Definition at line 100 of file al_Spherical.hpp.