IMP
2.2.1
The Integrative Modeling Platform
|
A Cartesian vector in D-dimensions. More...
#include <IMP/algebra/VectorD.h>
Public Member Functions | |
template<class Range > | |
VectorD (const Range &r) | |
template<int OD> | |
VectorD (const VectorD< OD > &o) | |
template<class It > | |
VectorD (It b, It e) | |
VectorD | get_unit_vector () const |
double | operator* (const VectorD &o) const |
VectorD | operator* (double s) const |
VectorD & | operator*= (double f) |
VectorD | operator+ (VectorD ret) const |
VectorD & | operator+= (const VectorD &o) |
VectorD | operator- () const |
VectorD | operator- (const VectorD &o) const |
VectorD & | operator-= (const VectorD &o) |
VectorD | operator/ (double s) const |
VectorD & | operator/= (double f) |
template<class R > | |
VectorD & | operator= (const R &o) |
Public Member Functions inherited from IMP::algebra::VectorBaseD< D > | |
template<class Range > | |
VectorBaseD (const Range &r) | |
VectorBaseD () | |
Default constructor. | |
iterator | begin () |
const_iterator | begin () const |
iterator | coordinates_begin () |
const_iterator | coordinates_begin () const |
iterator | coordinates_end () |
const_iterator | coordinates_end () const |
iterator | end () |
const_iterator | end () const |
Floats | get_coordinates () const |
const double * | get_data () const |
unsigned int | get_dimension () const |
double | get_magnitude () const |
double | get_scalar_product (const VectorBaseD< D > &o) const |
double | get_squared_magnitude () const |
template<class R > | |
VectorBaseD< D > & | operator= (const R &r) |
double | operator[] (unsigned int i) const |
double & | operator[] (unsigned int i) |
Additional Inherited Members | |
Public Types inherited from IMP::algebra::VectorBaseD< D > | |
typedef const double * | const_iterator |
typedef const double & | const_reference |
typedef std::ptrdiff_t | difference_type |
typedef double * | iterator |
typedef std::random_access_iterator_tag | iterator_category |
typedef double * | pointer |
typedef double & | reference |
typedef double | value_type |
Static Public Attributes inherited from IMP::algebra::VectorBaseD< D > | |
static const int | DIMENSION = D |
Store a vector of Cartesian coordinates. It supports all expected mathematical operators, including using * for the dot product.
See geometric primitives for more information.
|
explicit |