IMP Reference Guide
2.13.0
The Integrative Modeling Platform
|
Represent a unit simplex embedded in d-dimensional real space. More...
#include <IMP/algebra/UnitSimplexD.h>
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 |
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... | |
IMP::algebra::UnitSimplexD<-1 >::UnitSimplexD | ( | int | d = 1 | ) |
Construct from dimension d of embedded real space.
Definition at line 87 of file UnitSimplexD.h.
|
virtual |
Get dimension of embedded real space.
Implements IMP::algebra::UnitSimplexBaseD<-1 >.
Definition at line 92 of file UnitSimplexD.h.