Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
bvec4 Struct Reference

#include <geom.hpp>

Public Member Functions

 bvec4 ()
 
 bvec4 (uchar x, uchar y, uchar z, uchar w=0)
 
 bvec4 (const bvec &v, uchar w=0)
 
ucharoperator[] (int i)
 
uchar operator[] (int i) const
 
bool operator== (const bvec4 &v) const
 
bool operator!= (const bvec4 &v) const
 
bool iszero () const
 
vec tonormal () const
 
void lerp (const bvec4 &a, const bvec4 &b, float t)
 
void lerp (const bvec4 &a, const bvec4 &b, int ka, int kb, int d)
 
void flip ()
 

Public Attributes

union {
   struct {
uchar x
 
uchar y
 
uchar z
 
uchar w
 
   } 
 
   struct {
uchar r
 
uchar g
 
uchar b
 
uchar a
 
   } 
 
uchar v [4]
 
uint mask
 
}; 
 

Constructor & Destructor Documentation

bvec4::bvec4 ( )
inline
bvec4::bvec4 ( uchar  x,
uchar  y,
uchar  z,
uchar  w = 0 
)
inline
bvec4::bvec4 ( const bvec v,
uchar  w = 0 
)
inline

Member Function Documentation

void bvec4::flip ( )
inline
bool bvec4::iszero ( ) const
inline
void bvec4::lerp ( const bvec4 a,
const bvec4 b,
float  t 
)
inline

Referenced by addtris().

void bvec4::lerp ( const bvec4 a,
const bvec4 b,
int  ka,
int  kb,
int  d 
)
inline
bool bvec4::operator!= ( const bvec4 v) const
inline
bool bvec4::operator== ( const bvec4 v) const
inline
uchar& bvec4::operator[] ( int  i)
inline
uchar bvec4::operator[] ( int  i) const
inline
vec bvec4::tonormal ( ) const
inline

References f().

Member Data Documentation

union { ... }

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