bvec Struct Reference

#include <geom.h>

List of all members.

Public Member Functions

 bvec ()
 bvec (uchar x, uchar y, uchar z)
 bvec (const vec &v)
uchar & operator[] (int i)
uchar operator[] (int i) const
bool operator== (const bvec &v) const
bool operator!= (const bvec &v) const
bool iszero () const
vec tovec () const

Public Attributes

union {
   struct {
      uchar   x
      uchar   y
      uchar   z
   } 
   uchar   v [3]
}; 


Constructor & Destructor Documentation

bvec::bvec (  )  [inline]

bvec::bvec ( uchar  x,
uchar  y,
uchar  z 
) [inline]

bvec::bvec ( const vec &  v  )  [inline]


Member Function Documentation

bool bvec::iszero (  )  const [inline]

bool bvec::operator!= ( const bvec &  v  )  const [inline]

bool bvec::operator== ( const bvec &  v  )  const [inline]

uchar bvec::operator[] ( int  i  )  const [inline]

uchar& bvec::operator[] ( int  i  )  [inline]

vec bvec::tovec (  )  const [inline]


Member Data Documentation

union { ... }


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

Generated on Mon Dec 8 21:41:34 2008 for AssaultCube by  doxygen 1.5.7.1