All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
Vector.h File Reference
#include <cmath>

Classes

class  PLMD::VectorGeneric< n >
 Class implementing fixed size vectors of doubles. More...
 

Namespaces

 PLMD
 

Typedefs

typedef VectorGeneric< 2 > PLMD::Vector2d
 Alias for two dimensional vectors. More...
 
typedef VectorGeneric< 3 > PLMD::Vector3d
 Alias for three dimensional vectors. More...
 
typedef VectorGeneric< 4 > PLMD::Vector4d
 Alias for four dimensional vectors. More...
 
typedef Vector3d PLMD::Vector
 Alias for three dimensional vectors. More...
 

Functions

template<unsigned n>
VectorGeneric< nPLMD::operator+ (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
VectorGeneric< nPLMD::operator- (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
VectorGeneric< nPLMD::operator* (double s, const VectorGeneric< n > &v)
 
template<unsigned n>
VectorGeneric< nPLMD::operator* (const VectorGeneric< n > &v, double s)
 
template<unsigned n>
VectorGeneric< nPLMD::operator/ (const VectorGeneric< n > &v, double s)
 
template<unsigned n>
VectorGeneric< nPLMD::delta (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
double PLMD::dotProduct (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
double PLMD::dotProduct (const VectorGeneric< 2 > &v1, const VectorGeneric< 2 > &v2)
 
double PLMD::dotProduct (const VectorGeneric< 3 > &v1, const VectorGeneric< 3 > &v2)
 
double PLMD::dotProduct (const VectorGeneric< 4 > &v1, const VectorGeneric< 4 > &v2)
 
VectorGeneric< 3 > PLMD::crossProduct (const VectorGeneric< 3 > &v1, const VectorGeneric< 3 > &v2)
 
template<unsigned n>
double PLMD::modulo2 (const VectorGeneric< n > &v)
 
template<unsigned n>
double PLMD::modulo (const VectorGeneric< n > &v)