8 #ifndef IMPALGEBRA_CONE_3D_H
9 #define IMPALGEBRA_CONE_3D_H
22 IMPALGEBRA_BEGIN_NAMESPACE
41 double get_height()
const {
return seg_.get_length(); }
44 double get_angle()
const {
return 2. * std::atan(radius_ / get_height()); }
47 bool get_contains(
const Vector3D &v)
const;
63 IMPALGEBRA_END_NAMESPACE
Simple 3D sphere patch class.
#define IMP_NOT_IMPLEMENTED
Use this to make that the method is not implemented yet.
#define IMP_UNUSED(variable)
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
simple implementation of segments in 3D
Vector3D get_tip() const
Get the vertex of the cone.
Vector3D get_direction() const
Get the direction of the axis of the cone.
Various general useful macros for IMP.
#define IMP_VOLUME_GEOMETRY_METHODS(Name, name, area, volume, bounding_box)
implement the needed namespace methods for a geometry type
double get_radius() const
get the radius of the base circle
Various useful constants.
Various general useful macros for IMP.