IMP logo
IMP Reference Guide  2.17.0
The Integrative Modeling Platform
IMP::algebra::UnitSimplexD<-1 > Class Template Reference

Represent a unit simplex embedded in d-dimensional real space. More...

#include <IMP/algebra/UnitSimplexD.h>

+ Inheritance diagram for IMP::algebra::UnitSimplexD<-1 >:

Detailed Description

template<>
class IMP::algebra::UnitSimplexD<-1 >

Represent a unit simplex embedded in d-dimensional real space.

This version's dimension is not known at compile time and can operate with variable-dimension vectors.

Definition at line 84 of file UnitSimplexD.h.

Public Member Functions

 UnitSimplexD (int d=1)
 Construct from dimension d of embedded real space. More...
 
int get_dimension () const override
 Get dimension of embedded real space. More...
 
void show (std::ostream &out=std::cout) const
 
- Public Member Functions inherited from IMP::algebra::UnitSimplexBaseD<-1 >
VectorD< D > get_barycenter () const
 Get center of mass on simplex in embedded coordinates. More...
 
bool get_contains (const VectorD< D > &p, double atol=std::numeric_limits< double >::epsilon()) const
 Get whether the point is on the unit simplex. More...
 

Constructor & Destructor Documentation

Construct from dimension d of embedded real space.

Definition at line 87 of file UnitSimplexD.h.

Member Function Documentation

int IMP::algebra::UnitSimplexD<-1 >::get_dimension ( ) const
overridevirtual

Get dimension of embedded real space.

Implements IMP::algebra::UnitSimplexBaseD<-1 >.

Definition at line 92 of file UnitSimplexD.h.


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