IMP
2.1.1
The Integrative Modeling Platform
|
#include <IMP/algebra/grid_embeddings.h>
Public Member Functions | |
DefaultEmbeddingD (const VectorD< D > &origin, const VectorD< D > &cell) | |
unsigned int | get_dimension () const |
ExtendedGridIndexD< D > | get_extended_index (const VectorD< D > &o) const |
Return the index that would contain the voxel if the grid extended there. More... | |
GridIndexD< D > | get_index (const VectorD< D > &o) const |
const VectorD< D > | get_origin () const |
const VectorD< D > & | get_unit_cell () const |
Return the unit cell, relative to the origin. More... | |
void | set_origin (const VectorD< D > &o) |
void | set_unit_cell (const VectorD< D > &o) |
void | show (std::ostream &out=std::cout) const |
Center | |
VectorD< D > | get_center (const ExtendedGridIndexD< D > &ei) const |
VectorD< D > | get_center (const GridIndexD< D > &ei) const |
Bounding box | |
BoundingBoxD< D > | get_bounding_box (const ExtendedGridIndexD< D > &ei) const |
BoundingBoxD< D > | get_bounding_box (const GridIndexD< D > &ei) const |
Embed a grid as an evenly spaced axis aligned grid.
Definition at line 30 of file grid_embeddings.h.
ExtendedGridIndexD<D> IMP::algebra::DefaultEmbeddingD< D >::get_extended_index | ( | const VectorD< D > & | o | ) | const |
For example vectors below the "lower left" corner of the grid have indexes with all negative components. This operation will always succeed.
Definition at line 94 of file grid_embeddings.h.
const VectorD<D>& IMP::algebra::DefaultEmbeddingD< D >::get_unit_cell | ( | ) | const |
That is, the unit cell is
Definition at line 88 of file grid_embeddings.h.