4D unsigned char vector. More...
#include <Vec4uc.h>
Public Member Functions | |
| Vec4uc () | |
| Construct 0 vector. | |
| Vec4uc (unsigned char a) | |
| Construct 0 vector. | |
| Vec4uc (UChar _a, UChar _b, UChar _c, UChar _d) | |
| Construct 4D uchar vector. | |
| Vec4uc (const Vec4f &v) | |
| Convert from float vector. | |
| operator Vec4f () const | |
Public Member Functions inherited from CGLA::ArithVec< UChar, Vec4uc, 4 > | |
| void | set (UChar_a, UChar_b) |
| Set all coordinates of a 2D vector. | |
| void | set (UChar_a, UChar_b, UChar_c) |
| Set all coordinates of a 3D vector. | |
| void | set (UChar_a, UChar_b, UChar_c, UChar_d) |
| Set all coordinates of a 4D vector. | |
| const UChar & | operator[] (unsigned int i) const |
| Const index operator. | |
| UChar & | operator[] (unsigned int i) |
| Non-const index operator. | |
| const UChar & | operator() (unsigned int i) const |
| Const index operator. | |
| UChar & | operator() (unsigned int i) |
| Non-const index operator. | |
| UChar * | get () |
| const UChar * | get () const |
| bool | operator== (const Vec4uc &v) const |
| Equality operator. | |
| bool | operator== (UChark) const |
| Equality wrt scalar. True if all coords are equal to scalar. | |
| bool | operator!= (const Vec4uc &v) const |
| Inequality operator. | |
| bool | operator!= (UChark) const |
| Inequality wrt scalar. True if any coord not equal to scalar. | |
| bool | all_l (const Vec4uc &v) const |
| bool | all_le (const Vec4uc &v) const |
| bool | all_g (const Vec4uc &v) const |
| bool | all_ge (const Vec4uc &v) const |
| const Vec4uc & | operator*= (UChark) |
| Assignment multiplication with scalar. | |
| const Vec4uc & | operator*= (const Vec4uc &v) |
| const Vec4uc & | operator/= (UChark) |
| Assignment division with scalar. | |
| const Vec4uc & | operator/= (const Vec4uc &v) |
| Assigment division with vector. Each coord divided independently. | |
| const Vec4uc & | operator+= (UChark) |
| Assignment addition with scalar. Adds scalar to each coordinate. | |
| const Vec4uc & | operator+= (const Vec4uc &v) |
| Assignmment addition with vector. | |
| const Vec4uc & | operator-= (UChark) |
| Assignment subtraction with scalar. Subtracts scalar from each coord. | |
| const Vec4uc & | operator-= (const Vec4uc &v) |
| Assignment subtraction with vector. | |
| const Vec4uc | operator- () const |
| Negate vector. | |
| const Vec4uc | operator- (const Vec4uc &v1) const |
| Subtract two vectors. | |
| const Vec4uc | operator* (const Vec4uc &v1) const |
| const Vec4uc | operator* (UChark) const |
| Multiply scalar onto vector. | |
| const Vec4uc | operator+ (const Vec4uc &v1) const |
| Add two vectors. | |
| const Vec4uc | operator/ (const Vec4uc &v1) const |
| Divide two vectors. Each coord separately. | |
| const Vec4uc | operator/ (UChark) const |
| Divide vector by scalar. | |
| const UChar | min_coord () const |
| Return the smallest coordinate of the vector. | |
| const UChar | max_coord () const |
| Return the largest coordinate of the vector. | |
Additional Inherited Members | |
Public Types inherited from CGLA::ArithVec< UChar, Vec4uc, 4 > | |
| typedef UChar | ScalarType |
| For convenience we define a more meaningful name for the scalar type. | |
| typedef Vec4uc | VectorType |
| A more meaningful name for vector type. | |
Static Public Member Functions inherited from CGLA::ArithVec< UChar, Vec4uc, 4 > | |
| static unsigned int | get_dim () |
| Return dimension of vector. | |
Protected Member Functions inherited from CGLA::ArithVec< UChar, Vec4uc, 4 > | |
| ArithVec () | |
| Construct uninitialized vector. | |
| ArithVec (UChar_a) | |
| Construct a vector where all coordinates are identical. | |
| ArithVec (UChar_a, UChar_b) | |
| Construct a 2D vector. | |
| ArithVec (UChar_a, UChar_b, UChar_c) | |
| Construct a 3D vector. | |
| ArithVec (UChar_a, UChar_b, UChar_c, UChar_d) | |
| Construct a 4D vector. | |
Protected Attributes inherited from CGLA::ArithVec< UChar, Vec4uc, 4 > | |
| UChar | data [N] |
| The actual contents of the vector. | |
4D unsigned char vector.
1.8.6