VTK
|
#include "vtkVector.h"
Go to the source code of this file.
Defines | |
#define | vtkVectorOperatorPlus(vectorType, type, size) |
#define | vtkVectorOperatorMinus(vectorType, type, size) |
#define | vtkVectorOperatorMultiply(vectorType, type, size) |
#define | vtkVectorOperatorMultiplyScalar(vectorType, type, size) |
#define | vtkVectorOperatorMultiplyScalarPre(vectorType, type, size) |
#define | vtkVectorOperatorDivide(vectorType, type, size) |
#define | vtkVectorOperatorMacro(vectorType, type, size) |
Functions | |
template<typename A , int Size> | |
vtkVector< A, Size > | operator+ (const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2) |
template<typename A , int Size> | |
vtkVector< A, Size > | operator- (const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2) |
template<typename A , int Size> | |
vtkVector< A, Size > | operator* (const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2) |
template<typename A , typename B , int Size> | |
vtkVector< A, Size > | operator* (const vtkVector< A, Size > &v1, const B &scalar) |
template<typename A , int Size> | |
vtkVector< A, Size > | operator/ (const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2) |
vtkVectorOperatorMacro (vtkVector2i, int, 2) vtkVectorOperatorMacro(vtkVector2f | |
vtkVectorOperatorMacro (vtkVector2d, double, 2) vtkVectorOperatorMacro(vtkVector3i | |
vtkVectorOperatorMacro (vtkVector3f, float, 3) vtkVectorOperatorMacro(vtkVector3d | |
Variables | |
float | |
int | |
double |
#define vtkVectorOperatorPlus | ( | vectorType, | |
type, | |||
size | |||
) |
inline vectorType operator+(const vectorType& v1, const vectorType& v2) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) + \ static_cast<vtkVector<type, size> >(v2)).GetData()); \ }
Definition at line 95 of file vtkVectorOperators.h.
#define vtkVectorOperatorMinus | ( | vectorType, | |
type, | |||
size | |||
) |
inline vectorType operator-(const vectorType& v1, const vectorType& v2) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) - \ static_cast<vtkVector<type, size> >(v2)).GetData()); \ }
Definition at line 101 of file vtkVectorOperators.h.
#define vtkVectorOperatorMultiply | ( | vectorType, | |
type, | |||
size | |||
) |
inline vectorType operator*(const vectorType& v1, const vectorType& v2) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) * \ static_cast<vtkVector<type, size> >(v2)).GetData()); \ }
Definition at line 107 of file vtkVectorOperators.h.
#define vtkVectorOperatorMultiplyScalar | ( | vectorType, | |
type, | |||
size | |||
) |
template<typename B> \ inline vectorType operator*(const vectorType& v1, const B& scalar) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) * scalar).GetData()); \ }
Definition at line 113 of file vtkVectorOperators.h.
#define vtkVectorOperatorMultiplyScalarPre | ( | vectorType, | |
type, | |||
size | |||
) |
template<typename B> \ inline vectorType operator*(const B& scalar, const vectorType& v1) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) * scalar).GetData()); \ }
Definition at line 119 of file vtkVectorOperators.h.
#define vtkVectorOperatorDivide | ( | vectorType, | |
type, | |||
size | |||
) |
inline vectorType operator/(const vectorType& v1, const vectorType& v2) \ { \ return vectorType((static_cast<vtkVector<type, size> >(v1) / \ static_cast<vtkVector<type, size> >(v2)).GetData()); \ }
Definition at line 125 of file vtkVectorOperators.h.
#define vtkVectorOperatorMacro | ( | vectorType, | |
type, | |||
size | |||
) |
vtkVectorOperatorPlus(vectorType, type, size) \ vtkVectorOperatorMinus(vectorType, type, size) \ vtkVectorOperatorMultiply(vectorType, type, size) \ vtkVectorOperatorMultiplyScalar(vectorType, type, size) \ vtkVectorOperatorMultiplyScalarPre(vectorType, type, size) \ vtkVectorOperatorDivide(vectorType, type, size)
Definition at line 132 of file vtkVectorOperators.h.
vtkVector<A, Size> operator+ | ( | const vtkVector< A, Size > & | v1, |
const vtkVector< A, Size > & | v2 | ||
) |
Definition at line 26 of file vtkVectorOperators.h.
vtkVector<A, Size> operator- | ( | const vtkVector< A, Size > & | v1, |
const vtkVector< A, Size > & | v2 | ||
) |
Definition at line 40 of file vtkVectorOperators.h.
vtkVector<A, Size> operator* | ( | const vtkVector< A, Size > & | v1, |
const vtkVector< A, Size > & | v2 | ||
) |
Definition at line 54 of file vtkVectorOperators.h.
vtkVector<A, Size> operator* | ( | const vtkVector< A, Size > & | v1, |
const B & | scalar | ||
) |
Definition at line 68 of file vtkVectorOperators.h.
vtkVector<A, Size> operator/ | ( | const vtkVector< A, Size > & | v1, |
const vtkVector< A, Size > & | v2 | ||
) |
Definition at line 82 of file vtkVectorOperators.h.
vtkVectorOperatorMacro | ( | vtkVector2i | , |
int | , | ||
2 | |||
) |
vtkVectorOperatorMacro | ( | vtkVector2d | , |
double | , | ||
2 | |||
) |
vtkVectorOperatorMacro | ( | vtkVector3f | , |
float | , | ||
3 | |||
) |
Definition at line 143 of file vtkVectorOperators.h.
Definition at line 145 of file vtkVectorOperators.h.
Definition at line 147 of file vtkVectorOperators.h.