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
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) | |
| 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