IMP
2.4.0
The Integrative Modeling Platform
|
Represent a cone in 3D. More...
#include <IMP/algebra/Cone3D.h>
Represent a cone in 3D.
In general, a cone is a pyramid with a circular cross section. A right cone is a cone with its vertex above the center of its base. However, when used without qualification, the term "cone" often means "right cone." We have implemented a "right cone". See geometric primitives for more information.
Public Member Functions | |
Cone3D (const Segment3D &s, double radius) | |
Make with top at s.get_point(0), base at s.get_point(1) with given radius. More... | |
double | get_angle () const |
Plane3D | get_base_plane () const |
Get the plane supporting the base of the cone. More... | |
bool | get_contains (const Vector3D &v) const |
Return True iff the given point is inside the volume. More... | |
Vector3D | get_direction () const |
Get the direction of the axis of the cone. More... | |
double | get_height () const |
double | get_radius () const |
Get the radius of the base circle. More... | |
Vector3D | get_tip () const |
Get the vertex of the cone. More... | |
void | show (std::ostream &out=std::cout) const |
Related Functions | |
(Note that these are not member functions.) | |
BoundingBoxD< 3 > | get_bounding_box (const Cone3D &g) |
const Cone3D & | get_cone_3d_geometry (const Cone3D &g) |
double | get_surface_area (const Cone3D &g) |
double | get_volume (const Cone3D &g) |
void | set_cone_3d_geometry (Cone3D &g, const Cone3D &v) |
IMP::algebra::Cone3D::Cone3D | ( | const Segment3D & | s, |
double | radius | ||
) |
Make with top at s.get_point(0), base at s.get_point(1) with given radius.
double IMP::algebra::Cone3D::get_angle | ( | ) | const |
Plane3D IMP::algebra::Cone3D::get_base_plane | ( | ) | const |
Get the plane supporting the base of the cone.
The cone is on the positive side of the plane.
bool IMP::algebra::Cone3D::get_contains | ( | const Vector3D & | v | ) | const |
Return True iff the given point is inside the volume.
Vector3D IMP::algebra::Cone3D::get_direction | ( | ) | const |
double IMP::algebra::Cone3D::get_radius | ( | ) | const |
Vector3D IMP::algebra::Cone3D::get_tip | ( | ) | const |
|
related |