IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::algebra::Cone3D Class Reference

Represent a cone in 3D. More...

#include <IMP/algebra/Cone3D.h>

Inheritance diagram for IMP::algebra::Cone3D:

Detailed Description

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.

Definition at line 32 of file Cone3D.h.

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.
double get_angle () const
Plane3D get_base_plane () const
 Get the plane supporting the base of the cone.
bool get_contains (const Vector3D &v) const
 Return True iff the given point is inside the volume.
Vector3D get_direction () const
 Get the direction of the axis of the cone.
double get_height () const
double get_radius () const
 Get the radius of the base circle.
Vector3D get_tip () const
 Get the vertex of the cone.
void show (std::ostream &out=std::cout) const

(Note that these are not member symbols.)

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)

Constructor & Destructor Documentation

◆ Cone3D() [1/2]

IMP::algebra::Cone3D::Cone3D ( )

Definition at line 34 of file Cone3D.h.

◆ Cone3D() [2/2]

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.

Member Function Documentation

◆ get_angle()

double IMP::algebra::Cone3D::get_angle ( ) const

The opening angle of a cone is the vertex angle made by a cross section through the apex and center of the base.

Definition at line 46 of file Cone3D.h.

◆ get_base_plane()

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.

◆ get_contains()

bool IMP::algebra::Cone3D::get_contains ( const Vector3D & v) const

Return True iff the given point is inside the volume.

◆ get_direction()

Vector3D IMP::algebra::Cone3D::get_direction ( ) const

Get the direction of the axis of the cone.

This vector points from the tip into the occupied volume.

Definition at line 42 of file Cone3D.h.

◆ get_height()

double IMP::algebra::Cone3D::get_height ( ) const

Definition at line 43 of file Cone3D.h.

◆ get_radius()

double IMP::algebra::Cone3D::get_radius ( ) const

Get the radius of the base circle.

Definition at line 48 of file Cone3D.h.

◆ get_tip()

Vector3D IMP::algebra::Cone3D::get_tip ( ) const

Get the vertex of the cone.

Definition at line 38 of file Cone3D.h.

◆ get_bounding_box()

BoundingBoxD< 3 > get_bounding_box ( const Cone3D & g)
related

Definition at line 71 of file Cone3D.h.

◆ get_cone_3d_geometry()

const Cone3D & get_cone_3d_geometry ( const Cone3D & g)
related

Definition at line 71 of file Cone3D.h.

◆ get_surface_area()

double get_surface_area ( const Cone3D & g)
related

Definition at line 71 of file Cone3D.h.

◆ get_volume()

double get_volume ( const Cone3D & g)
related

Definition at line 71 of file Cone3D.h.

◆ set_cone_3d_geometry()

void set_cone_3d_geometry ( Cone3D & g,
const Cone3D & v )
related

Definition at line 71 of file Cone3D.h.


The documentation for this class was generated from the following file: