VTK
Macros | Functions | Variables
vtkVectorOperators.h File Reference
#include "vtkVector.h"
Include dependency graph for vtkVectorOperators.h:

Go to the source code of this file.

Macros

#define vtkVectorOperatorNegate(vectorType, type, size)
 
#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 > &v)
 
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
 

Macro Definition Documentation

#define vtkVectorOperatorNegate (   vectorType,
  type,
  size 
)
Value:
inline vectorType operator-(const vectorType& v) \
{ \
return vectorType((-static_cast<vtkVector<type, size> >(v)).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator-(const vtkVector< A, Size > &v)

Definition at line 108 of file vtkVectorOperators.h.

#define vtkVectorOperatorPlus (   vectorType,
  type,
  size 
)
Value:
inline vectorType operator+(const vectorType& v1, const vectorType& v2) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) + \
static_cast<vtkVector<type, size> >(v2)).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator+(const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2)

Definition at line 113 of file vtkVectorOperators.h.

#define vtkVectorOperatorMinus (   vectorType,
  type,
  size 
)
Value:
inline vectorType operator-(const vectorType& v1, const vectorType& v2) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) - \
static_cast<vtkVector<type, size> >(v2)).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator-(const vtkVector< A, Size > &v)

Definition at line 119 of file vtkVectorOperators.h.

#define vtkVectorOperatorMultiply (   vectorType,
  type,
  size 
)
Value:
inline vectorType operator*(const vectorType& v1, const vectorType& v2) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) * \
static_cast<vtkVector<type, size> >(v2)).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator*(const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2)

Definition at line 125 of file vtkVectorOperators.h.

#define vtkVectorOperatorMultiplyScalar (   vectorType,
  type,
  size 
)
Value:
template<typename B> \
inline vectorType operator*(const vectorType& v1, const B& scalar) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) * scalar).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator*(const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2)

Definition at line 131 of file vtkVectorOperators.h.

#define vtkVectorOperatorMultiplyScalarPre (   vectorType,
  type,
  size 
)
Value:
template<typename B> \
inline vectorType operator*(const B& scalar, const vectorType& v1) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) * scalar).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator*(const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2)

Definition at line 137 of file vtkVectorOperators.h.

#define vtkVectorOperatorDivide (   vectorType,
  type,
  size 
)
Value:
inline vectorType operator/(const vectorType& v1, const vectorType& v2) \
{ \
return vectorType((static_cast<vtkVector<type, size> >(v1) / \
static_cast<vtkVector<type, size> >(v2)).GetData()); \
}
templated base type for storage of vectors.
Definition: vtkVector.h:39
vtkVector< A, Size > operator/(const vtkVector< A, Size > &v1, const vtkVector< A, Size > &v2)

Definition at line 143 of file vtkVectorOperators.h.

#define vtkVectorOperatorMacro (   vectorType,
  type,
  size 
)
Value:
#define vtkVectorOperatorPlus(vectorType, type, size)
#define vtkVectorOperatorNegate(vectorType, type, size)
#define vtkVectorOperatorMultiplyScalar(vectorType, type, size)
#define vtkVectorOperatorMultiply(vectorType, type, size)
#define vtkVectorOperatorMultiplyScalarPre(vectorType, type, size)
#define vtkVectorOperatorDivide(vectorType, type, size)
#define vtkVectorOperatorMinus(vectorType, type, size)

Definition at line 150 of file vtkVectorOperators.h.

Function Documentation

template<typename A , int Size>
vtkVector<A, Size> operator- ( const vtkVector< A, Size > &  v)

Definition at line 26 of file vtkVectorOperators.h.

template<typename A , int Size>
vtkVector<A, Size> operator+ ( const vtkVector< A, Size > &  v1,
const vtkVector< A, Size > &  v2 
)

Definition at line 39 of file vtkVectorOperators.h.

template<typename A , int Size>
vtkVector<A, Size> operator- ( const vtkVector< A, Size > &  v1,
const vtkVector< A, Size > &  v2 
)

Definition at line 53 of file vtkVectorOperators.h.

template<typename A , int Size>
vtkVector<A, Size> operator* ( const vtkVector< A, Size > &  v1,
const vtkVector< A, Size > &  v2 
)

Definition at line 67 of file vtkVectorOperators.h.

template<typename A , typename B , int Size>
vtkVector<A, Size> operator* ( const vtkVector< A, Size > &  v1,
const B &  scalar 
)

Definition at line 81 of file vtkVectorOperators.h.

template<typename A , int Size>
vtkVector<A, Size> operator/ ( const vtkVector< A, Size > &  v1,
const vtkVector< A, Size > &  v2 
)

Definition at line 95 of file vtkVectorOperators.h.

vtkVectorOperatorMacro ( vtkVector2i  ,
int  ,
 
)
vtkVectorOperatorMacro ( vtkVector2d  ,
double  ,
 
)
vtkVectorOperatorMacro ( vtkVector3f  ,
float  ,
 
)

Variable Documentation

float

Definition at line 162 of file vtkVectorOperators.h.

int

Definition at line 164 of file vtkVectorOperators.h.

double

Definition at line 166 of file vtkVectorOperators.h.