GEL  2
GEL is a library for Geometry and Linear Algebra
Public Member Functions
CGLA::ArithVec3Float< T, V > Class Template Reference

Inherits CGLA::ArithVecFloat< T, V, 3 >.

List of all members.

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)

template<class T, class V>
class CGLA::ArithVec3Float< T, V >


Member Function Documentation

template<class T, class V >
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.

template<class T, class V >
void CGLA::ArithVec3Float< T, V >::set_spherical ( theta,
phi,
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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations