GEL
2
GEL is a library for Geometry and Linear Algebra
|
Inherits CGLA::ArithVecFloat< T, V, 3 >.
Public Member Functions | |
ArithVec3Float (T a, T b, T c) | |
Construct a 3D float vector. | |
ArithVec3Float () | |
Construct a 3D float vector. | |
void | get_spherical (T &, T &, T &) const |
void | set_spherical (T, T, T) |
void CGLA::ArithVec3Float< T, V >::get_spherical | ( | T & | theta, |
T & | phi, | ||
T & | rlen | ||
) | const |
Get the vector in spherical coordinates. The first argument (theta) is inclination from the vertical axis. The second argument (phi) is the angle of rotation about the vertical axis. The third argument (r) is the length of the vector.
void CGLA::ArithVec3Float< T, V >::set_spherical | ( | T | theta, |
T | phi, | ||
T | rlen | ||
) |
Assign the vector in spherical coordinates. The first argument (theta) is inclination from the vertical axis. The second argument (phi) is the angle of rotation about the vertical axis. The third argument (r) is the length of the vector.