IMP logo
IMP Reference Guide  develop.eb1b99edaa,2026/06/22
The Integrative Modeling Platform
IMP::VectorD< D > Class Template Reference

A Cartesian vector in D-dimensions. More...

#include <IMP/VectorD.h>

+ Inheritance diagram for IMP::VectorD< D >:

Detailed Description

template<int D>
class IMP::VectorD< D >

A Cartesian vector in D-dimensions.

Store a vector of Cartesian coordinates. It supports all expected mathematical operators, including using * for the dot product.

See Also
Vector3D
Vector2D

See geometric primitives for more information.

Definition at line 38 of file VectorD.h.

Public Member Functions

template<class Range >
 VectorD (const Range &r)
 Will accept a list of floats from Python. More...
 
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
 
VectorDoperator*= (double f)
 
VectorD operator+ (VectorD ret) const
 
VectorDoperator+= (const VectorD &o)
 
VectorD operator- () const
 
VectorD operator- (const VectorD &o) const
 
VectorDoperator-= (const VectorD &o)
 
VectorD operator/ (double s) const
 
VectorDoperator/= (double f)
 
template<class R >
VectorDoperator= (const R &o)
 

Constructor & Destructor Documentation

template<int D>
template<class Range >
IMP::VectorD< D >::VectorD ( const Range &  r)
explicit

Will accept a list of floats from Python.

Definition at line 41 of file VectorD.h.

template<int D>
template<class It >
IMP::VectorD< D >::VectorD ( It  b,
It  e 
)

The distance between b and e must be equal to D . \

Definition at line 41 of file VectorD.h.


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