IMP  2.0.0
The Integrative Modeling Platform
IMP::algebra::Cone3D Class Reference

#include <IMP/algebra/Cone3D.h>

+ Inheritance diagram for IMP::algebra::Cone3D:

Public Member Functions

 Cone3D (const Segment3D &s, double radius)
 
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
 
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
 
Vector3D get_tip () const
 Get the vertex of the cone.
 
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 Cone3Dget_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)
 

Vector Generators

These functions generate vector objects. Some of the methods, those with random in their name, generate a single vector chosen uniformly from the specified domain. Others, the cover methods, generate a set of points distributed (somewhat) evenly over the domain.

Vector3Ds get_uniform_surface_cover (const Cone3D &cone, unsigned int number_of_points)
 

Detailed Description

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".

Note
This class is a geometric primitive. Also, this class is not not initialized by its default constructor.

Definition at line 31 of file Cone3D.h.

Member Function Documentation

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.

Plane3D IMP::algebra::Cone3D::get_base_plane ( ) const

The cone is on the positive side of the plane.

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

This vector points from the tip into the occupied volume.

Definition at line 42 of file Cone3D.h.

Friends And Related Function Documentation

BoundingBoxD< 3 > get_bounding_box ( const Cone3D g)
related

Definition at line 65 of file Cone3D.h.

const Cone3D & get_cone_3d_geometry ( const Cone3D g)
related

Definition at line 65 of file Cone3D.h.

double get_surface_area ( const Cone3D g)
related

Definition at line 65 of file Cone3D.h.

double get_volume ( const Cone3D g)
related

Definition at line 65 of file Cone3D.h.

void set_cone_3d_geometry ( Cone3D g,
const Cone3D v 
)
related

Definition at line 65 of file Cone3D.h.


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