Public Types | |
| typedef unsigned char | value_type |
| enum | { num_components = 4 } |
Public Member Functions | |
| Vec4ub () | |
| Vec4ub (value_type x, value_type y, value_type z, value_type w) | |
| bool | operator== (const Vec4ub &v) const |
| bool | operator!= (const Vec4ub &v) const |
| bool | operator< (const Vec4ub &v) const |
| unsigned char * | ptr () |
| const unsigned char * | ptr () const |
| void | set (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| unsigned char & | operator[] (unsigned int i) |
| unsigned char | operator[] (unsigned int i) const |
| unsigned char & | r () |
| unsigned char & | g () |
| unsigned char & | b () |
| unsigned char & | a () |
| unsigned char | r () const |
| unsigned char | g () const |
| unsigned char | b () const |
| unsigned char | a () const |
| Vec4ub | operator * (float rhs) const |
| Vec4ub & | operator *= (float rhs) |
| Vec4ub | operator/ (float rhs) const |
| Vec4ub & | operator/= (float rhs) |
| Vec4ub | operator+ (const Vec4ub &rhs) const |
| Vec4ub & | operator+= (const Vec4ub &rhs) |
| Vec4ub | operator- (const Vec4ub &rhs) const |
| Vec4ub & | operator-= (const Vec4ub &rhs) |
Public Attributes | |
| value_type | _v [4] |
|
|
Type of Vec class. |
|
|
Number of vector components. |
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Multiply by scalar. |
|
|
Unary multiply by scalar. |
|
|
|
|
|
Binary vector add. |
|
|
Unary vector add. Slightly more efficient because no temporary intermediate object. |
|
|
Binary vector subtract. |
|
|
Unary vector subtract. |
|
|
Divide by scalar. |
|
|
Unary divide by scalar. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
Vec member varaible. |
1.4.6