IMP
2.0.1
The Integrative Modeling Platform
|
Class to represent a 3D point in spherical coordinates. More...
#include <IMP/algebra/SphericalVector3D.h>
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 |
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
Definition at line 29 of file SphericalVector3D.h.
IMP::algebra::SphericalVector3D::SphericalVector3D | ( | const Vector3D & | v | ) |
Constructor that directly converts to spherical coordinates from a vector v in Cartesian coordinates
Definition at line 37 of file SphericalVector3D.h.
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
Definition at line 46 of file SphericalVector3D.h.