3D unsigned char vector. More...
#include <Vec3uc.h>
Public Member Functions | |
Vec3uc () | |
Construct 0 vector. | |
Vec3uc (UChar a, UChar b, UChar c) | |
Construct 3D uchar vector. | |
Vec3uc (const Vec3i &v) | |
Convert from int vector. | |
![]() | |
ArithVec3Int (UChara, UCharb, UCharc) | |
Construct a 3D int vector. | |
ArithVec3Int () | |
Construct a 3D int vector. | |
![]() | |
ArithVecInt (UChara) | |
ArithVecInt (UChara, UCharb) | |
ArithVecInt (UChara, UCharb, UCharc) | |
ArithVecInt (UChara, UCharb, UCharc, UChard) | |
![]() | |
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 Vec3uc &v) const |
Equality operator. | |
bool | operator== (UChark) const |
Equality wrt scalar. True if all coords are equal to scalar. | |
bool | operator!= (const Vec3uc &v) const |
Inequality operator. | |
bool | operator!= (UChark) const |
Inequality wrt scalar. True if any coord not equal to scalar. | |
bool | all_l (const Vec3uc &v) const |
bool | all_le (const Vec3uc &v) const |
bool | all_g (const Vec3uc &v) const |
bool | all_ge (const Vec3uc &v) const |
const Vec3uc & | operator*= (UChark) |
Assignment multiplication with scalar. | |
const Vec3uc & | operator*= (const Vec3uc &v) |
const Vec3uc & | operator/= (UChark) |
Assignment division with scalar. | |
const Vec3uc & | operator/= (const Vec3uc &v) |
Assigment division with vector. Each coord divided independently. | |
const Vec3uc & | operator+= (UChark) |
Assignment addition with scalar. Adds scalar to each coordinate. | |
const Vec3uc & | operator+= (const Vec3uc &v) |
Assignmment addition with vector. | |
const Vec3uc & | operator-= (UChark) |
Assignment subtraction with scalar. Subtracts scalar from each coord. | |
const Vec3uc & | operator-= (const Vec3uc &v) |
Assignment subtraction with vector. | |
const Vec3uc | operator- () const |
Negate vector. | |
const Vec3uc | operator- (const Vec3uc &v1) const |
Subtract two vectors. | |
const Vec3uc | operator* (const Vec3uc &v1) const |
const Vec3uc | operator* (UChark) const |
Multiply scalar onto vector. | |
const Vec3uc | operator+ (const Vec3uc &v1) const |
Add two vectors. | |
const Vec3uc | operator/ (const Vec3uc &v1) const |
Divide two vectors. Each coord separately. | |
const Vec3uc | 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 | |
![]() | |
typedef UChar | ScalarType |
For convenience we define a more meaningful name for the scalar type. | |
typedef Vec3uc | VectorType |
A more meaningful name for vector type. | |
![]() | |
static unsigned int | get_dim () |
Return dimension of vector. | |
![]() | |
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. | |
![]() | |
UChar | data [N] |
The actual contents of the vector. | |
3D unsigned char vector.