NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Attributes | List of all members
CVect2< T > Class Template Reference

Search Toolkit Book for CVect2

#include <gui/utils/vect2.hpp>

+ Inheritance diagram for CVect2< T >:
+ Collaboration diagram for CVect2< T >:

Public Types

typedef T TVecType
 

Public Member Functions

 CVect2 ()
 
 CVect2 (T val)
 
 CVect2 (T, T)
 
T operator[] (int i) const
 
Toperator[] (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< TDirection () const
 
bool Parallel (const CVect2< T > &) const
 
bool Normal (const CVect2< T > &) const
 
T Dot (const CVect2< T > &) const
 
TX ()
 
const TX () const
 
TY ()
 
const TY () const
 
const TGetData () const
 

Protected Attributes

T m_Xy [2]
 

Detailed Description

template<class T>
class CVect2< T >

Definition at line 47 of file vect2.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:10 2024 by modify_doxy.py rev. 669887