IMP logo

IMP::algebra::SphericalVector3D Class Reference


Detailed Description

Class to represent a 3D point in spherical coordinates.

The order assumed for the representation is radial distance, zenith, and azimuth (r, theta, psi). zenith - angle with axis z azimuth - angle with axis x

Note:
This class is a geometric primitive. Also, this class is not not initialized by its default constructor.

Public Member Functions

VectorD< 3 > get_cartesian_coordinates ()
 Returns a vector with the Cartesian coordinates.
double & operator[] (unsigned int i)
double operator[] (unsigned int i) const
 SphericalVector3D (double r, double theta, double psi, bool apply_check=true)
 SphericalVector3D (VectorD< 3 > &v)

Constructor & Destructor Documentation

IMP::algebra::SphericalVector3D::SphericalVector3D ( VectorD< 3 > &  v  ) 

Constructor that directly converts to spherical coordinates from a vector v in Cartesian coordinates

IMP::algebra::SphericalVector3D::SphericalVector3D ( double  r,
double  theta,
double  psi,
bool  apply_check = true 
)

Direct Constructor. A check for the validity of the coords is done by default Set apply_check to false if you do not want the check


The documentation for this class was generated from the following files:

Generated on Mon Mar 8 23:08:47 2010 for IMP by doxygen 1.5.8