VTK
Public Member Functions | List of all members
vtkVector2< T > Class Template Reference

#include <vtkVector.h>

Inheritance diagram for vtkVector2< T >:
[legend]
Collaboration diagram for vtkVector2< T >:
[legend]

Public Member Functions

 vtkVector2 ()
 
 vtkVector2 (const T &scalar)
 
 vtkVector2 (const T *init)
 
 vtkVector2 (const T &x, const T &y)
 
void SetX (const T &x)
 
const T & GetX () const
 
void SetY (const T &y)
 
void Set (const T &x, const T &y)
 
const T & GetY () const
 
- Public Member Functions inherited from vtkVector< T, 2 >
 vtkVector ()
 
 vtkVector (const T &scalar)
 
 vtkVector (const T *init)
 
SquaredNorm () const
 
double Norm () const
 
double Normalize ()
 
vtkVector< T, Size > Normalized () const
 
Dot (const vtkVector< T, Size > &other) const
 
vtkVector< TR, Size > Cast () const
 
- Public Member Functions inherited from vtkTuple< T, Size >
int GetSize () const
 
 vtkTuple ()
 
 vtkTuple (const T &scalar)
 
 vtkTuple (const T *init)
 
T * GetData ()
 
const T * GetData () const
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
operator() (int i) const
 
bool Compare (const vtkTuple< T, Size > &other, const T &tol) const
 
template<typename TR >
vtkTuple< TR, Size > Cast () const
 

Additional Inherited Members

- Protected Attributes inherited from vtkTuple< T, Size >
Data [Size]
 

Detailed Description

template<typename T>
class vtkVector2< T >

Definition at line 140 of file vtkVector.h.

Constructor & Destructor Documentation

template<typename T>
vtkVector2< T >::vtkVector2 ( )
inline

Definition at line 143 of file vtkVector.h.

template<typename T>
vtkVector2< T >::vtkVector2 ( const T &  scalar)
inlineexplicit

Definition at line 147 of file vtkVector.h.

template<typename T>
vtkVector2< T >::vtkVector2 ( const T *  init)
inlineexplicit

Definition at line 151 of file vtkVector.h.

template<typename T>
vtkVector2< T >::vtkVector2 ( const T &  x,
const T &  y 
)
inline

Definition at line 155 of file vtkVector.h.

Member Function Documentation

template<typename T>
void vtkVector2< T >::Set ( const T &  x,
const T &  y 
)
inline

Set the x and y components of the vector.

Definition at line 163 of file vtkVector.h.

template<typename T>
void vtkVector2< T >::SetX ( const T &  x)
inline

Set the x component of the vector, i.e. element 0.

Definition at line 171 of file vtkVector.h.

template<typename T>
const T& vtkVector2< T >::GetX ( ) const
inline

Get the x component of the vector, i.e. element 0.

Definition at line 174 of file vtkVector.h.

template<typename T>
void vtkVector2< T >::SetY ( const T &  y)
inline

Set the y component of the vector, i.e. element 1.

Definition at line 177 of file vtkVector.h.

template<typename T>
const T& vtkVector2< T >::GetY ( ) const
inline

Get the y component of the vector, i.e. element 1.

Definition at line 181 of file vtkVector.h.


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