33 template<
typename T,
int Size>
39 for (
int i = 0; i < Size; ++i)
47 for (
int i = 0; i < Size; ++i)
79 for (
int i = 0; i < Size; ++i)
81 result[i] =
static_cast<TR
>(
Data[i]);
112 void Set(
const T& x,
const T& y)
125 const T&
X()
const {
return this->
Data[0]; }
134 const T&
Y()
const {
return this->
Data[1]; }
155 void Set(
const T& x,
const T& y,
const T& z)
169 const T&
X()
const {
return this->
Data[0]; }
178 const T&
Y()
const {
return this->
Data[1]; }
187 const T&
Z()
const {
return this->
Data[2]; }
242 return vtkVector2f(lhs[0] + rhs[0], lhs[1] + rhs[1]);
246 return vtkVector2f(lhs[0] - rhs[0], lhs[1] - rhs[1]);
249 #endif // __vtkVector_h
vtkVector2d(double x=0.0, double y=0.0)
const vtkVector2f operator-(const vtkVector2f &lhs, const vtkVector2f &rhs)
templated base type for storage of vectors.
vtkVector2d(const double *init)
vtkVector2(const T &x=0, const T &y=0)
vtkVector3i(const int *init)
const T * GetData() const
vtkVector2f(const float *i)
vtkVector2(const T *init)
void Set(const T &x, const T &y)
T operator()(int i) const
vtkVector3d(double x=0.0, double y=0.0, double z=0.0)
void Set(const T &x, const T &y, const T &z)
vtkVector2i(const int *init)
const T & operator[](int i) const
vtkVector3i(int x=0, int y=0, int z=0)
vtkVector3d(const double *init)
const vtkVector2f operator+(const vtkVector2f &lhs, const vtkVector2f &rhs)
vtkVector< TR, Size > Cast() const
vtkVector3f(float x=0.0, float y=0.0, float z=0.0)
vtkVector2i(int x=0, int y=0)
vtkVector3(const T *init)
vtkVector3f(const float *init)
vtkVector2f(float x=0.0, float y=0.0)
vtkVector3(const T &x=0, const T &y=0, const T &z=0)