NCBI C++ ToolKit
|
Search Toolkit Book for CVect2
#include <gui/utils/vect2.hpp>
Public Types | |
typedef T | TVecType |
Public Member Functions | |
CVect2 () | |
CVect2 (T val) | |
CVect2 (T, T) | |
T | operator[] (int i) const |
T & | operator[] (int i) |
CVect2< T > & | operator+= (T) |
CVect2< T > & | operator+= (const CVect2< T > &) |
CVect2< T > & | operator-= (T) |
CVect2< T > & | operator-= (const CVect2< T > &) |
CVect2< T > & | operator*= (T) |
CVect2< T > & | operator/= (T) |
void | Set (T x, T y) |
float | Length () const |
float | Length2 () const |
bool | Vanishing () const |
void | Normalize () |
CVect2< T > | Direction () const |
bool | Parallel (const CVect2< T > &) const |
bool | Normal (const CVect2< T > &) const |
T | Dot (const CVect2< T > &) const |
T & | X () |
const T & | X () const |
T & | Y () |
const T & | Y () const |
const T * | GetData () const |
Protected Attributes | |
T | m_Xy [2] |