8 #ifndef IMPALGEBRA_SPHERE_3D_H
9 #define IMPALGEBRA_SPHERE_3D_H
13 IMPALGEBRA_BEGIN_NAMESPACE
37 return std::pow((.75 /
PI) * volume, .3333);
40 #ifdef IMP_ALGEBRA_USE_IMP_CGAL
60 double maximum_allowed_error_angstroms);
62 IMPALGEBRA_END_NAMESPACE
IMP::base::Vector< Sphere3D > Sphere3Ds
SphereD< 3 > Sphere3D
Typedef for Python.
static const double PI
the constant pi
std::pair< double, double > FloatPair
A generic pair of floats.
double get_ball_radius_from_volume_3d(double volume)
Return the radius of a sphere with a given volume.
base::Vector< VectorD< 3 > > Vector3Ds
FloatPair get_surface_area_and_volume(const algebra::Sphere3Ds &ss)
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Sphere3Ds get_simplified_from_volume(Sphere3Ds in, double maximum_allowed_error_angstroms)
Sphere3D get_enclosing_sphere(const Vector3Ds &ss)
Return a sphere containing the listed vectors.