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
sVec3< T > Struct Template Reference

Public Member Functions

void Set (T _x, T _y=0, T _z=0)
 
void Set (const T *apV)
 
tSize size () const
 
T * ptr ()
 
const T * ptr () const
 
T & operator[] (int idx)
 
const T & operator[] (int idx) const
 
sVec4< T > operator[] (const cchar *idx) const
 
bool operator< (const sVec3< T > &aR) const
 
bool operator<= (const sVec3< T > &aR) const
 
bool operator> (const sVec3< T > &aR) const
 
bool operator>= (const sVec3< T > &aR) const
 
bool operator== (const sVec3< T > &aR) const
 
bool operator!= (const sVec3< T > &aR) const
 
sVec3 operator+ () const
 
sVec3 operator- () const
 
sVec3operator+= (const sVec3< T > &v)
 
sVec3operator+= (T s)
 
sVec3 operator+ (const sVec3< T > &v) const
 
sVec3 operator+ (T s) const
 
sVec3operator-= (const sVec3< T > &v)
 
sVec3operator-= (T s)
 
sVec3 operator- (const sVec3< T > &v) const
 
sVec3 operator- (T s) const
 
sVec3operator*= (const sVec3< T > &v)
 
sVec3operator*= (T s)
 
sVec3 operator* (const sVec3< T > &v) const
 
sVec3 operator* (T s) const
 
sVec3operator/= (const sVec3< T > &v)
 
sVec3operator/= (T s)
 
sVec3 operator/ (const sVec3< T > &v) const
 
sVec3 operator/ (T s) const
 

Static Public Member Functions

static const sVec3Zero ()
 
static const sVec3One ()
 
static const sVec3Epsilon ()
 
static const sVec3XAxis ()
 
static const sVec3YAxis ()
 
static const sVec3ZAxis ()
 
static const sVec3OpXAxis ()
 
static const sVec3OpYAxis ()
 
static const sVec3OpZAxis ()
 
static const sVec3Black ()
 
static const sVec3White ()
 
static const sVec3Red ()
 
static const sVec3Green ()
 
static const sVec3Blue ()
 
static const sVec3Yellow ()
 
static const sVec3Pink ()
 
static const sVec3Aqua ()
 
static const sVec3Orange ()
 
static const sVec3Gray ()
 

Public Attributes

x
 
y
 
z
 

Member Function Documentation

void Set ( _x,
_y = 0,
_z = 0 
)
void Set ( const T *  apV)
tSize size ( ) const
T* ptr ( )
const T* ptr ( ) const
T& operator[] ( int  idx)
const T& operator[] ( int  idx) const
bool operator< ( const sVec3< T > &  aR) const
bool operator<= ( const sVec3< T > &  aR) const
bool operator> ( const sVec3< T > &  aR) const
bool operator>= ( const sVec3< T > &  aR) const
bool operator== ( const sVec3< T > &  aR) const
bool operator!= ( const sVec3< T > &  aR) const
sVec3 operator+ ( ) const
sVec3 operator- ( ) const
sVec3& operator+= ( const sVec3< T > &  v)
sVec3& operator+= ( s)
sVec3 operator+ ( const sVec3< T > &  v) const
sVec3 operator+ ( s) const
sVec3& operator-= ( const sVec3< T > &  v)
sVec3& operator-= ( s)
sVec3 operator- ( const sVec3< T > &  v) const
sVec3 operator- ( s) const
sVec3& operator*= ( const sVec3< T > &  v)
sVec3& operator*= ( s)
sVec3 operator* ( const sVec3< T > &  v) const
sVec3 operator* ( s) const
sVec3& operator/= ( const sVec3< T > &  v)
sVec3& operator/= ( s)
sVec3 operator/ ( const sVec3< T > &  v) const
sVec3 operator/ ( s) const
static const sVec3& Zero ( )
static
static const sVec3& One ( )
static
static const sVec3& Epsilon ( )
static
static const sVec3& XAxis ( )
static
static const sVec3& YAxis ( )
static
static const sVec3& ZAxis ( )
static
static const sVec3& OpXAxis ( )
static
static const sVec3& OpYAxis ( )
static
static const sVec3& OpZAxis ( )
static
static const sVec3& Black ( )
static
static const sVec3& White ( )
static
static const sVec3& Red ( )
static
static const sVec3& Green ( )
static
static const sVec3& Blue ( )
static
static const sVec3& Yellow ( )
static
static const sVec3& Pink ( )
static
static const sVec3& Aqua ( )
static
static const sVec3& Orange ( )
static
static const sVec3& Gray ( )
static

Member Data Documentation

T x
T y
T z