8 #ifndef IMPALGEBRA_ELLIPSOID_3D_H
9 #define IMPALGEBRA_ELLIPSOID_3D_H
11 #include <IMP/algebra/algebra_config.h>
18 IMPALGEBRA_BEGIN_NAMESPACE
27 : rf_(rf), radii_(radii) {}
30 const Vector3D &get_radii()
const {
return radii_; }
33 IMPALGEBRA_DEPRECATED_FUNCTION_DECL(2.2)
34 double get_radius(
unsigned int i)
const {
return radii_[i]; }
36 IMPALGEBRA_DEPRECATED_FUNCTION_DECL(2.2)
38 return rf_.get_transformation_to().get_translation();
41 IMPALGEBRA_DEPRECATED_FUNCTION_DECL(2.2)
43 return rf_.get_transformation_to().get_rotation();
46 IMPALGEBRA_DEPRECATED_FUNCTION_DECL(2.2)
48 return rf_.get_transformation_to();
59 return 4.0 / 3.0 *
PI * g.get_radii()[0] *
60 g.get_radii()[1] * g.get_radii()[2],
63 BoundingBoxD<3> b(-v, v);
64 return get_transformed(b, g.get_reference_frame().get_transformation_to());
67 IMPALGEBRA_END_NAMESPACE
#define IMP_NOT_IMPLEMENTED
Use this to make that the method is not implemented yet.
static const double PI
the constant pi
#define IMP_UNUSED(variable)
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
#define IMP_VOLUME_GEOMETRY_METHODS(Name, name, area, volume, bounding_box)
implement the needed namespace methods for a geometry type
A bounding box in D dimensions.
Various useful constants.
Simple 3D rotation class.