IMP logo
Public Member Functions
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.

List of all members.

Public Member Functions

 SphericalVector3D (const Vector3D &v)
 SphericalVector3D (double r, double theta, double psi, bool apply_check=true)
Vector3D get_cartesian_coordinates ()
 Returns a vector with the Cartesian coordinates.
double operator[] (unsigned int i) const
double & operator[] (unsigned int i)
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

IMP::algebra::SphericalVector3D::SphericalVector3D ( const Vector3D 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


Member Function Documentation

Vector3D IMP::algebra::SphericalVector3D::get_cartesian_coordinates ( )

Returns a vector with the Cartesian coordinates.


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

Generated on Tue May 22 2012 23:33:25 for IMP by doxygen 1.8.1