TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
sVec2< T > Struct Template Reference
Inheritance diagram for sVec2< T >:
Complex< T >

Public Member Functions

void Set (T _x, T _y=0)
 
void Set (const T *apV)
 
tSize size () const
 
T * ptr ()
 
const T * ptr () const
 
T & operator[] (int idx)
 
operator[] (int idx) const
 
T & re ()
 
const T & re () const
 
T & im ()
 
const T & im () const
 
T & E ()
 
const T & E () const
 
T & N ()
 
const T & N () const
 
sVec4< T > operator[] (const cchar *idx) const
 
bool operator< (const sVec2< T > &aR) const
 
bool operator<= (const sVec2< T > &aR) const
 
bool operator> (const sVec2< T > &aR) const
 
bool operator>= (const sVec2< T > &aR) const
 
bool operator== (const sVec2< T > &aR) const
 
bool operator!= (const sVec2< T > &aR) const
 
sVec2 operator+ () const
 
sVec2 operator- () const
 
sVec2operator+= (const sVec2< T > &v)
 
sVec2operator+= (T s)
 
sVec2 operator+ (const sVec2< T > &v) const
 
sVec2 operator+ (T s) const
 
sVec2operator-= (const sVec2< T > &v)
 
sVec2operator-= (T s)
 
sVec2 operator- (const sVec2< T > &v) const
 
sVec2 operator- (T s) const
 
sVec2operator*= (const sVec2< T > &v)
 
sVec2operator*= (T s)
 
sVec2 operator* (const sVec2< T > &v) const
 
sVec2 operator* (T s) const
 
sVec2operator/= (const sVec2< T > &v)
 
sVec2operator/= (T s)
 
sVec2 operator/ (const sVec2< T > &v) const
 
sVec2 operator/ (T s) const
 

Static Public Member Functions

static const sVec2Zero ()
 
static const sVec2One ()
 
static const sVec2Epsilon ()
 
static const sVec2XAxis ()
 
static const sVec2YAxis ()
 
static const sVec2OpXAxis ()
 
static const sVec2OpYAxis ()
 

Public Attributes

x
 
y
 

Member Function Documentation

void Set ( _x,
_y = 0 
)
void Set ( const T *  apV)
tSize size ( ) const
T* ptr ( )
const T* ptr ( ) const
T& operator[] ( int  idx)
T operator[] ( int  idx) const
T& re ( )
const T& re ( ) const
T& im ( )
const T& im ( ) const
T& E ( )
const T& E ( ) const
T& N ( )
const T& N ( ) const
bool operator< ( const sVec2< T > &  aR) const
bool operator<= ( const sVec2< T > &  aR) const
bool operator> ( const sVec2< T > &  aR) const
bool operator>= ( const sVec2< T > &  aR) const
bool operator== ( const sVec2< T > &  aR) const
bool operator!= ( const sVec2< T > &  aR) const
sVec2 operator+ ( ) const
sVec2 operator- ( ) const
sVec2& operator+= ( const sVec2< T > &  v)
sVec2& operator+= ( s)
sVec2 operator+ ( const sVec2< T > &  v) const
sVec2 operator+ ( s) const
sVec2& operator-= ( const sVec2< T > &  v)
sVec2& operator-= ( s)
sVec2 operator- ( const sVec2< T > &  v) const
sVec2 operator- ( s) const
sVec2& operator*= ( const sVec2< T > &  v)
sVec2& operator*= ( s)
sVec2 operator* ( const sVec2< T > &  v) const
sVec2 operator* ( s) const
sVec2& operator/= ( const sVec2< T > &  v)
sVec2& operator/= ( s)
sVec2 operator/ ( const sVec2< T > &  v) const
sVec2 operator/ ( s) const
static const sVec2& Zero ( )
static
static const sVec2& One ( )
static
static const sVec2& Epsilon ( )
static
static const sVec2& XAxis ( )
static
static const sVec2& YAxis ( )
static
static const sVec2& OpXAxis ( )
static
static const sVec2& OpYAxis ( )
static

Member Data Documentation

T x
T y