IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
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 25 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.
bool get_contains (const VectorD< D > &p) const
 Return true if the point is in or on the surface of the sphere.
unsigned int get_dimension () const
double get_radius () const
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

◆ SphereD() [1/2]

template<int D>
IMP::algebra::SphereD< D >::SphereD ( )

Definition at line 34 of file SphereD.h.

◆ SphereD() [2/2]

template<int D>
IMP::algebra::SphereD< D >::SphereD ( const VectorD< D > & center,
double radius )

Definition at line 39 of file SphereD.h.

Member Function Documentation

◆ get_center()

template<int D>
const VectorD< D > & IMP::algebra::SphereD< D >::get_center ( ) const

Definition at line 48 of file SphereD.h.

◆ get_contains() [1/2]

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 50 of file SphereD.h.

◆ get_contains() [2/2]

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 56 of file SphereD.h.

◆ get_dimension()

template<int D>
unsigned int IMP::algebra::SphereD< D >::get_dimension ( ) const

Definition at line 92 of file SphereD.h.

◆ get_radius()

template<int D>
double IMP::algebra::SphereD< D >::get_radius ( ) const

Definition at line 43 of file SphereD.h.


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