Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
OpenMesh::VectorT< Scalar, DIM > Class Template Reference

#include <OpenMesh/Core/Math/VectorT.hh>

Inheritance diagram for OpenMesh::VectorT< Scalar, DIM >:
ACG::QuaternionT< Scalar > ACG::QuaternionT< double >

Related Functions

(Note that these are not member functions.)

template<typename Scalar1 , typename Scalar2 , int N>
VectorT< Scalar1, N > operator* (Scalar2 _s, const VectorT< Scalar1, N > &_v)
 
template<typename Scalar , int N>
Scalar dot (const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
 
template<typename Scalar , int N>
VectorT< Scalar, N > cross (const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
 
template<typename Scalar , int DIM>
Scalar dot (const VectorT< Scalar, DIM > &_v1, const VectorT< Scalar, DIM > &_v2)
 
template<typename LScalar , typename RScalar , int DIM>
auto cross (const VectorT< LScalar, DIM > &_v1, const VectorT< RScalar, DIM > &_v2) -> decltype(_v1%_v2)
 
template<typename Scalar , int DIM>
void swap (VectorT< Scalar, DIM > &_v1, VectorT< Scalar, DIM > &_v2) noexcept(noexcept(_v1.swap(_v2)))
 
template<typename Scalar1 , typename Scalar2 , int N>
VectorT< Scalar1, N > operator* (Scalar2 _s, const VectorT< Scalar1, N > &_v)
 
template<typename Scalar , int N>
Scalar dot (const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
 
template<typename Scalar , int N>
VectorT< Scalar, N > cross (const VectorT< Scalar, N > &_v1, const VectorT< Scalar, N > &_v2)
 

Detailed Description

template<typename Scalar, int DIM>
class OpenMesh::VectorT< Scalar, DIM >

A vector is an array of <N> values of type <Scalar>. The actual data is stored in an VectorDataT, this class just adds the necessary operators.

Definition at line 83 of file Vector11T.hh.

Friends And Related Function Documentation

template<typename Scalar , int N>
VectorT< Scalar, N > cross ( const VectorT< Scalar, N > &  _v1,
const VectorT< Scalar, N > &  _v2 
)
related

symmetric version of the cross product

Definition at line 272 of file MeshNode2T.cc.

template<typename Scalar , int N>
VectorT< Scalar, N > cross ( const VectorT< Scalar, N > &  _v1,
const VectorT< Scalar, N > &  _v2 
)
related

symmetric version of the cross product

Definition at line 272 of file VectorT.hh.

template<typename LScalar , typename RScalar , int DIM>
auto cross ( const VectorT< LScalar, DIM > &  _v1,
const VectorT< RScalar, DIM > &  _v2 
) -> decltype(_v1 % _v2)
related

symmetric version of the cross product

Definition at line 707 of file Vector11T.hh.

template<typename Scalar , int N>
Scalar dot ( const VectorT< Scalar, N > &  _v1,
const VectorT< Scalar, N > &  _v2 
)
related

symmetric version of the dot product

Definition at line 263 of file VectorT.hh.

template<typename Scalar , int N>
Scalar dot ( const VectorT< Scalar, N > &  _v1,
const VectorT< Scalar, N > &  _v2 
)
related

symmetric version of the dot product

Definition at line 263 of file MeshNode2T.cc.

template<typename Scalar , int DIM>
Scalar dot ( const VectorT< Scalar, DIM > &  _v1,
const VectorT< Scalar, DIM > &  _v2 
)
related

symmetric version of the dot product

Definition at line 699 of file Vector11T.hh.

template<typename Scalar1 , typename Scalar2 , int N>
VectorT< Scalar1, N > operator* ( Scalar2  _s,
const VectorT< Scalar1, N > &  _v 
)
related

scalar * vector

Definition at line 254 of file MeshNode2T.cc.

template<typename Scalar1 , typename Scalar2 , int N>
VectorT< Scalar1, N > operator* ( Scalar2  _s,
const VectorT< Scalar1, N > &  _v 
)
related

scalar * vector

Definition at line 254 of file VectorT.hh.

template<typename Scalar , int DIM>
void swap ( VectorT< Scalar, DIM > &  _v1,
VectorT< Scalar, DIM > &  _v2 
)
related

non-member swap

Definition at line 715 of file Vector11T.hh.


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