IMP logo
IMP Reference Guide  2.20.1
The Integrative Modeling Platform
IMP::algebra::SphereD< D > Class Template Reference

Represent a sphere in D-dimensions. More...

#include <IMP/algebra/SphereD.h>

+ Inheritance diagram for IMP::algebra::SphereD< D >:

Detailed Description

template<int D>
class IMP::algebra::SphereD< D >

Represent a sphere in D-dimensions.

See geometric primitives for more information.

Definition at line 26 of file SphereD.h.

Public Member Functions

 SphereD (const VectorD< D > &center, double radius)
 
const VectorD< D > & get_center () const
 
bool get_contains (const SphereD< D > &o) const
 Return true if this sphere contains the other one. More...
 
bool get_contains (const VectorD< D > &p) const
 Return true if the point is in or on the surface of the sphere. More...
 
unsigned int get_dimension () const
 
double get_radius () const
 
void show (std::ostream &out=std::cout) const
 

Member Function Documentation

template<int D>
bool IMP::algebra::SphereD< D >::get_contains ( const SphereD< D > &  o) const

Return true if this sphere contains the other one.

Definition at line 51 of file SphereD.h.

template<int D>
bool IMP::algebra::SphereD< D >::get_contains ( const VectorD< D > &  p) const

Return true if the point is in or on the surface of the sphere.

Definition at line 57 of file SphereD.h.


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