|
Free Electron
|
Special vector for color (RGBA) More...
#include <Color.h>

Public Member Functions | |
| Color (Real r, Real g, Real b=(Real) 0, Real a=(Real) 1) | |
| Color (const Vector< 3, Real > &other) | |
| Color (const Vector< 4, Real > &other) | |
| template<typename U > | |
| Color (const Vector< 3, U > &other) | |
| template<typename U > | |
| Color (const Vector< 4, U > &other) | |
| Color (const Real *array) | |
Public Member Functions inherited from fe::Vector< 4, Real > | |
| Vector (const Vector< N, Real > &other) | |
| Vector (const Vector< N, U > &other) | |
| Vector (const Vector< N+1, U > &other) | |
| Vector (const Vector< N+2, U > &other) | |
| Vector (const Vector< N-1, U > &other) | |
| Vector (const Vector< N-2, U > &other) | |
| Vector (const Real *array) | |
| Vector (Real x, Real y, Real z, Real w, Real v, Real u) | |
| Vector (Real x, Real y, Real z, Real w, Real v) | |
| Vector (Real x, Real y, Real z, Real w) | |
| Vector (Real x, Real y, Real z) | |
| Vector (Real x, Real y) | |
| Vector (Real x) | |
| Vector (const Vector< 2, U > &other) | |
| const Real & | operator[] (unsigned int index) const |
| Real & | operator[] (unsigned int index) |
| Real * | raw (void) |
| const Real * | raw (void) const |
| const Real * | temp (void) const |
| Vector< N, Real > & | operator= (const Real *array) |
| Vector< N, Real > & | operator= (const Vector< N, Real > &other) |
| Vector< N, Real > & | operator= (const Vector< N, U > &other) |
| Vector< N, Real > & | operator= (const Vector< N+1, Real > &other) |
| Vector< N, Real > & | operator= (const Vector< N+1, U > &other) |
| Vector< N, Real > & | operator= (const Vector< N+2, U > &other) |
| Vector< N, Real > & | operator= (const Vector< N-1, U > &other) |
| Vector< N, Real > & | operator= (const Vector< N-2, U > &other) |
| bool | operator== (const Vector< N, Real > &other) const |
| bool | operator!= (const Vector< N, Real > &other) const |
Additional Inherited Members | |
Public Attributes inherited from fe::Vector< 4, Real > | |
| Real | m_data [N] |
Related Functions inherited from fe::Vector< 4, Real > | |
| bool | operator== (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| equality test More... | |
| Vector< M, Real > & | multiply (Vector< M, Real > &b, const Matrix< M, N, Real > &A, const Vector< N, U > &x) |
| Matrix Vector multiply. More... | |
| Vector< M, Real > | multiply (const Matrix< M, N, Real > &A, const Vector< N, U > &x) |
| Matrix Vector multiply. More... | |
| Vector< M, Real > | transposeMultiply (const Matrix< M, N, Real > &A, const Vector< N, Real > &x) |
| Matrix Vector multiply with the matrix transposed. More... | |
| Vector< M, U > | operator* (const Matrix< M, N, Real > &lhs, const Vector< N, U > &rhs) |
| Matrix Vector multiply. More... | |
| Vector< N, Real > | operator* (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| Piecewise multiply operation. More... | |
| Vector< N, Real > | operator* (const U lhs, const Vector< N, Real > &rhs) |
| Scale operation. More... | |
| Vector< N, Real > | operator* (const Vector< N, Real > &lhs, const U &rhs) |
| Scale operation. More... | |
| Vector< 4, Real > | operator* (const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Return a Vector of products of each component. More... | |
| boost::enable_if< boost::is_arithmetic< U >, Vector< 4, Real > >::type | operator* (const U lhs, const Vector< 4, Real > &rhs) |
| Return a uniformly scale Vector (pre) More... | |
| boost::enable_if< boost::is_arithmetic< U >, Vector< 4, Real > >::type | operator* (const Vector< 4, Real > &lhs, const U rhs) |
| Return a uniformly scale Vector (post) More... | |
| Vector< FE_VDIM, F32 > | operator* (const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return a Vector of products of each component. More... | |
| boost::enable_if< boost::is_arithmetic< Real >, Vector< FE_VDIM, F32 > >::type | operator* (const Real lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return a uniformly scaled Vector (pre) More... | |
| boost::enable_if< boost::is_arithmetic< Real >, Vector< FE_VDIM, F32 > >::type | operator* (const Vector< FE_VDIM, F32 > &lhs, const Real rhs) |
| Return a uniformly scaled Vector (post) More... | |
| bool | equivalent (const Matrix< 3, 4, Real > &lhs, const Matrix< 3, 4, Real > &rhs, U margin) |
| Equivalence test within the given tolerance margin. More... | |
| bool | equivalent (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs, U margin) |
| Equivalence test within the given tolerance margin. More... | |
| Vector< N, Real > & | set (Vector< N, Real > &lhs) |
| Set all the elements to zero. More... | |
| Vector< 4, Real > & | set (Vector< 4, Real > &r) |
| Set components. More... | |
| Vector< 4, Real > & | set (Vector< 4, Real > &r, U x) |
| Set components. More... | |
| Vector< 4, Real > & | set (Vector< 4, Real > &r, U x, V y) |
| Set components. More... | |
| Vector< 4, Real > & | set (Vector< 4, Real > &r, U x, V y, W z) |
| Set components. More... | |
| Vector< 4, Real > & | set (Vector< 4, Real > &r, U x, V y, W z, X w) |
| Set components. More... | |
| Vector< FE_VDIM, F32 > & | set (Vector< FE_VDIM, F32 > &r) |
| Set components. More... | |
| Vector< FE_VDIM, F32 > & | set (Vector< FE_VDIM, F32 > &r, Real x) |
| Set components. More... | |
| Vector< FE_VDIM, F32 > & | set (Vector< FE_VDIM, F32 > &r, Real x, U y) |
| Set components. More... | |
| Vector< FE_VDIM, F32 > & | set (Vector< FE_VDIM, F32 > &r, Real x, U y, V z) |
| Set components. More... | |
| Vector< FE_VDIM, F32 > & | set (Vector< FE_VDIM, F32 > &r, Real x, U y, V z, W w) |
| Set components. More... | |
| Vector< N, Real > & | setAll (Vector< N, Real > &lhs, const U value) |
| Set all the elements to the given value. More... | |
| Vector< FE_VDIM, F32 > & | setAll (Vector< FE_VDIM, F32 > &lhs, Real value) |
| Set all components to the same value. More... | |
| Vector< N, Real > & | setAt (Vector< N, Real > &lhs, U32 index, const U value) |
| Set the value at the index. More... | |
| Vector< 4, Real > & | setAt (Vector< 4, Real > &lhs, U32 index, U value) |
| Set indexed component. More... | |
| Vector< FE_VDIM, F32 > & | setAt (Vector< FE_VDIM, F32 > &lhs, U32 index, Real value) |
| Set indexed component. More... | |
| U32 | size (const Vector< N, Real > &lhs) |
| Return the number of elements. More... | |
| U32 | size (const Vector< 4, Real > &lhs) |
| Return the number of elements. More... | |
| U32 | size (const Vector< FE_VDIM, F32 > &lhs) |
| Return the number of elements. More... | |
| Vector< N, Real > & | operator+= (Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| In place add operator. More... | |
| Vector< N, Real > & | operator+= (Vector< N, Real > &lhs, const Vector< M, Real > &rhs) |
| In place add operator. More... | |
| Vector< 4, Real > & | operator+= (Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Add to Vector in place. More... | |
| Vector< FE_VDIM, F32 > & | operator+= (Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Add to Vector in place. More... | |
| Vector< N, Real > & | operator-= (Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| In place subtract operator. More... | |
| Vector< N, Real > & | operator-= (Vector< N, Real > &lhs, const Vector< M, Real > &rhs) |
| In place subtract operator. More... | |
| Vector< 4, Real > & | operator-= (Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Subtract from Vector in place. More... | |
| Vector< FE_VDIM, F32 > & | operator-= (Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Subtract from Vector in place. More... | |
| Vector< N, Real > | operator- (const Vector< N, Real > &rhs) |
| Negate operation. More... | |
| Vector< N, Real > | operator- (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| subtract operation More... | |
| Vector< N, Real > | operator- (const Vector< N, Real > &lhs, const Vector< M, Real > &rhs) |
| subtract operation More... | |
| Vector< 4, Real > | operator- (const Vector< 4, Real > &rhs) |
| Negate the Vector. More... | |
| Vector< 4, Real > | operator- (const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Return difference of Vectors. More... | |
| Vector< FE_VDIM, F32 > | operator- (const Vector< FE_VDIM, F32 > &rhs) |
| Negate the Vector. More... | |
| Vector< FE_VDIM, F32 > | operator- (const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return difference of Vectors. More... | |
| Vector< N, Real > & | operator*= (Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| In place piecewise multiply operator. More... | |
| Vector< N, Real > & | operator*= (Vector< N, Real > &lhs, const Vector< M, Real > &rhs) |
| In place piecewise multiply operator. More... | |
| Vector< N, Real > & | operator*= (Vector< N, Real > &lhs, U scale) |
| In place piecewise scale operator. More... | |
| Vector< 4, Real > & | operator*= (Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Independently scale components in place. More... | |
| Vector< 4, Real > & | operator*= (Vector< 4, Real > &lhs, U scale) |
| Uniformly scale components in place. More... | |
| Vector< FE_VDIM, F32 > & | operator*= (Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Independently scale components in place. More... | |
| Vector< FE_VDIM, F32 > & | operator*= (Vector< FE_VDIM, F32 > &lhs, Real rhs) |
| Uniformly scale components in place. More... | |
| Real | dot (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| Dot (inner) product. More... | |
| Real | dot (const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Return dot product. More... | |
| F32 | dot (const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return dot product. More... | |
| Real | magnitude (const Vector< N, Real > &rhs) |
| Frobenius norm operation. More... | |
| Real | magnitude (const Vector< 4, Real > &rhs) |
| Return the Vector length. More... | |
| F32 | magnitude (const Vector< FE_VDIM, F32 > &rhs) |
| Return the Vector length. More... | |
| Real | magnitudeSquared (const Vector< N, Real > &rhs) |
| Square of the length. More... | |
| Real | magnitudeSquared (const Vector< 4, Real > &rhs) |
| Return square of the Vector length. More... | |
| F32 | magnitudeSquared (const Vector< FE_VDIM, F32 > &rhs) |
| Return square of the Vector length. More... | |
| Vector< N, Real > | unit (const Vector< N, Real > &vec) |
| Return vector scaled to unit length. More... | |
| Vector< 4, Real > | unit (const Vector< 4, Real > &vector) |
| Return the Vector direction scaled to unit length. More... | |
| Vector< FE_VDIM, F32 > | unit (const Vector< FE_VDIM, F32 > &rhs) |
| Return the Vector direction scaled to unit length. More... | |
| Vector< N, Real > | unitSafe (const Vector< N, Real > &vec) |
| Return vector scaled to unit length with zero check. More... | |
| Vector< 4, Real > | unitSafe (const Vector< 4, Real > &vector) |
| Return the Vector direction scaled to unit length with zero check. More... | |
| Vector< FE_VDIM, F32 > | unitSafe (const Vector< FE_VDIM, F32 > &rhs) |
| Return the Vector direction scaled to unit length with zero check. More... | |
| Vector< N, Real > & | normalize (Vector< N, Real > &vec) |
| In place normalize operator. More... | |
| Vector< 4, Real > & | normalize (Vector< 4, Real > &vector) |
| Scale Vector to unit length. More... | |
| Vector< FE_VDIM, F32 > & | normalize (Vector< FE_VDIM, F32 > &rhs) |
| Scale Vector to unit length. More... | |
| Vector< N, Real > & | normalizeSafe (Vector< N, Real > &vec) |
| In place normalize operator with zero length check. More... | |
| Vector< 4, Real > & | normalizeSafe (Vector< 4, Real > &vector) |
| Scale Vector to unit length with zero check. More... | |
| Vector< FE_VDIM, F32 > & | normalizeSafe (Vector< FE_VDIM, F32 > &rhs) |
| Scale Vector to unit length. More... | |
| String | print (const Vector< N, Real > &vec) |
| Print to a string. More... | |
| String | print (const Vector< 4, Real > &vector) |
| Return text describing the Vector's state. More... | |
| String | print (const Vector< FE_VDIM, F32 > &rhs) |
| Return text describing the Vector's state. More... | |
| Vector< N, Real > | operator+ (const Vector< N, Real > &lhs, const Vector< N, Real > &rhs) |
| add operation More... | |
| Vector< N, Real > | operator+ (const Vector< N, Real > &lhs, const Vector< M, Real > &rhs) |
| add operation More... | |
| Vector< 4, Real > | operator+ (const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Return sum of Vectors. More... | |
| Vector< FE_VDIM, F32 > | operator+ (const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return sum of Vectors. More... | |
| Vector< N, Real > | operator/ (const Vector< N, Real > &lhs, const U &rhs) |
| Inverse Scale operation. More... | |
| Vector< N, Real > & | addScaled (Vector< N, Real > &lhs, U scalar, const Vector< N, Real > &rhs) |
| Add with scaling. More... | |
| Vector< N, Real > & | scaleAndAdd (Vector< N, Real > &lhs, U scalar, const Vector< N, Real > &rhs) |
| Scale then add. More... | |
| Vector< 4, Real > & | cross3 (Vector< 4, Real > &r, const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Return a cross product of Vectors. More... | |
| Vector< 4, Real > | cross3 (const Vector< 4, Real > &lhs, const Vector< 4, Real > &rhs) |
| Set the Vector as a cross product of Vectors. More... | |
| Vector< FE_VDIM, F32 > & | cross3 (Vector< FE_VDIM, F32 > &r, const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Return a cross product of Vectors. More... | |
| Vector< FE_VDIM, F32 > | cross3 (const Vector< FE_VDIM, F32 > &lhs, const Vector< FE_VDIM, F32 > &rhs) |
| Set the Vector as a cross product of Vectors. More... | |
Special vector for color (RGBA)
1.8.13