|
| template<typename T1 > |
| | Color (const Color< T1 > &color) |
| | Constructor to convert from one color type to another. More...
|
| |
| template<typename T1 > |
| | Color (const Vector< 4, T1 > &color, const T &scale) |
| |
| | Color (const Vector< 4, T > ©) |
| |
| | Color (const QColor &c) |
| |
| | Color (const T &r=T(), const T &g=T(), const T &b=T(), const T &a=T()) |
| | Constructor. More...
|
| |
| T & | r () |
| | Return the red component. More...
|
| |
| T & | g () |
| | Return the green component. More...
|
| |
| T & | b () |
| | Return the blue component. More...
|
| |
| T & | a () |
| | Return the alpha component. More...
|
| |
| const T & | r () const |
| | Return the red component. More...
|
| |
| const T & | g () const |
| | Return the green component. More...
|
| |
| const T & | b () const |
| | Return the blue component. More...
|
| |
| const T & | a () const |
| | Return the alpha component. More...
|
| |
| void | r (const T &val) |
| | Set the red component. More...
|
| |
| void | g (const T &val) |
| | Set the green component. More...
|
| |
| void | b (const T &val) |
| | Set the blue component. More...
|
| |
| void | a (const T &val) |
| | Set the alpha component. More...
|
| |
| Color< T > & | operator= (const Color< T > &c) |
| | Assignment of color data. More...
|
| |
| Color< T > & | operator= (const Vector< 4, T > &c) |
| |
| Color< T > & | operator= (const T &val) |
| |
| Color< T > & | operator= (const QColor &c) |
| |
| | operator QColor () const |
| |
| CU_HOST_DEVICE | Vector (const Vector< d1, T1 > &vec) |
| | Copy another vector with different number of elements. More...
|
| |
| CU_HOST_DEVICE | Vector (const Vec &el) |
| | Initialize a vector from any object behaving like an array. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x=T()) |
| | Initialize a vector with all values to x. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y) |
| | Initialize a 2D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y, const T &z) |
| | Initialize a 3D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y, const T &z, const T &t) |
| | Initialize a 4D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y, const T &z, const T &a, const T &b) |
| | Initialize a 5D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y, const T &z, const T &a, const T &b, const T &c) |
| | Initialize a 6D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &x, const T &y, const T &z, const T &a, const T &b, const T &c, const T &d) |
| | Initialize a 7D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, const T &g, const T &h) |
| | Initialize a 8D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, const T &g, const T &h, const T &i) |
| | Initialize a 9D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, const T &g, const T &h, const T &i, const T &j, const T &k, const T &l) |
| | Initialize a 12D vector. More...
|
| |
| CU_HOST_DEVICE | Vector (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, const T &g, const T &h, const T &i, const T &j, const T &k, const T &l, const T &m, const T &n, const T &o, const T &p, const T &q, const T &r) |
| | Initialize a 18D vector. More...
|
| |
| CU_HOST_DEVICE T * | data () |
| | Returns a raw pointer on the data. More...
|
| |
| CU_HOST_DEVICE iterator | begin () |
| | STL-iteration begin. More...
|
| |
| CU_HOST_DEVICE const_iterator | begin () const |
| | Stl-iteration constant begin. More...
|
| |
| CU_HOST_DEVICE iterator | end () |
| | STL-iteration end. More...
|
| |
| CU_HOST_DEVICE const_iterator | end () const |
| | Stl-iteration constant end. More...
|
| |
| const CU_HOST_DEVICE T * | c_data () const |
| | Returns a constant raw pointer on the data. More...
|
| |
| CU_HOST_DEVICE Vector | operator- (void) const |
| | Vector negation. More...
|
| |
| CU_HOST_DEVICE Vector | operator- (const Vector &vec) const |
| | Vector subtraction. More...
|
| |
| CU_HOST_DEVICE Vector | operator+ (const Vector &vec) const |
| | Vector addition. More...
|
| |
| CU_HOST_DEVICE Vector | mult (const Vector &vec) const |
| | Element-wise multiplcation. More...
|
| |
| CU_HOST_DEVICE Vector | operator* (const T &scalar) const |
| | Multiplication by a scalar. More...
|
| |
| CU_HOST_DEVICE T | operator* (const Vector &vec) const |
| | Dot product. More...
|
| |
| CU_HOST_DEVICE Vector | operator/ (const T &scalar) const |
| | Division by a scalar. More...
|
| |
| CU_HOST_DEVICE Vector | operator/ (const Vector &vec) const |
| | Element-wise division. More...
|
| |
| CU_HOST_DEVICE Vector & | operator/= (const Vector &vec) |
| | In-place element-wise division by a scalar. More...
|
| |
| CU_HOST_DEVICE Vector & | operator/= (const T &scalar) |
| | In-place division by a scalar. More...
|
| |
| CU_HOST_DEVICE Vector & | operator/= (const T1 &scalar) |
| | In-place division by a scalar. More...
|
| |
| CU_HOST_DEVICE Vector & | operator+= (const Vector &vec) |
| | Vector copy. More...
|
| |
| CU_HOST_DEVICE Vector & | operator+= (const T &val) |
| | In-place constant addition. More...
|
| |
| CU_HOST_DEVICE Vector & | operator-= (const Vector &vec) |
| | In-place vector subtraction. More...
|
| |
| CU_HOST_DEVICE Vector & | operator-= (const T &val) |
| | In-place value subtraction. More...
|
| |
| CU_HOST_DEVICE Vector & | operator*= (const T &scalar) |
| | In-place multiplication by a scalar. More...
|
| |
| CU_HOST_DEVICE Vector & | operator*= (const T1 &scalar) |
| | In-place multiplication by a scalar. More...
|
| |
| CU_HOST_DEVICE bool | operator== (const Vector &vec) const |
| | Element-wise equality. More...
|
| |
| CU_HOST_DEVICE bool | operator!= (const Vector &vec) const |
| | Element-wise inequality. More...
|
| |
| CU_HOST_DEVICE T & | operator[] (size_t idx) |
| | Access to the element idx. More...
|
| |
| const CU_HOST_DEVICE T & | operator[] (size_t idx) const |
| | Access to the element idx. More...
|
| |
| CU_HOST_DEVICE T | norm () const |
| | Euclidean norm of the vector. More...
|
| |
| CU_HOST_DEVICE T | normsq () const |
| | Square of the Euclidean norm of the vector. More...
|
| |
| CU_HOST_DEVICE Vector & | normalize (void) |
| | Normalize the vector. More...
|
| |
| CU_HOST_DEVICE Vector | normalized (void) const |
| | Returns a normalized version of the vector. More...
|
| |
| bool | iszero (void) |
| |
| Vector & | zero (void) |
| |
| CU_HOST_DEVICE void | set (const T &x) |
| | Set the values of a 1-D vector. More...
|
| |
| CU_HOST_DEVICE void | set (const T &x, const T &y) |
| | Set the values of a 2-D vector. More...
|
| |
| CU_HOST_DEVICE void | set (const T &x, const T &y, const T &z) |
| | Set the values of a 3-D vector. More...
|
| |
| CU_HOST_DEVICE void | set (const T &x, const T &y, const T &z, const T &t) |
| | Set the values of a 4-D vector. More...
|
| |
| CU_HOST_DEVICE Vector & | operator= (const T &value) |
| | Set all the elements to value. More...
|
| |
| CU_HOST_DEVICE Vector | cross (const Vector &other) const |
| | Compute the cross product as this x other. More...
|
| |
| CU_HOST_DEVICE void | x (const T &v) |
| | Short access to the first element. More...
|
| |
| CU_HOST_DEVICE T & | x () |
| | Short access to the first element. More...
|
| |
| const CU_HOST_DEVICE T & | x () const |
| | Short access to the first element. More...
|
| |
| CU_HOST_DEVICE void | y (const T &v) |
| | Short access to the second element. More...
|
| |
| CU_HOST_DEVICE T & | y () |
| | Short access to the second element. More...
|
| |
| const CU_HOST_DEVICE T & | y () const |
| | Short access to the second element. More...
|
| |
| CU_HOST_DEVICE void | z (const T &v) |
| | Short access to the third element. More...
|
| |
| CU_HOST_DEVICE T & | z () |
| | Short access to the third element. More...
|
| |
| const CU_HOST_DEVICE T & | z () const |
| | Short access to the third element. More...
|
| |
| CU_HOST_DEVICE void | t (const T &v) |
| | Short access to the fourth element. More...
|
| |
| CU_HOST_DEVICE T & | t () |
| | Short access to the fourth element. More...
|
| |
| const CU_HOST_DEVICE T & | t () const |
| | Short access to the fourth element. More...
|
| |
| CU_HOST_DEVICE void | i (const T &v) |
| | Short access to the first element. More...
|
| |
| CU_HOST_DEVICE T & | i () |
| | Short access to the first element. More...
|
| |
| const CU_HOST_DEVICE T & | i () const |
| | Short access to the first element. More...
|
| |
| CU_HOST_DEVICE void | j (const T &v) |
| | Short access to the second element. More...
|
| |
| CU_HOST_DEVICE T & | j () |
| | Short access to the second element. More...
|
| |
| const CU_HOST_DEVICE T & | j () const |
| | Short access to the second element. More...
|
| |
| CU_HOST_DEVICE void | k (const T &v) |
| | Short access to the third element. More...
|
| |
| CU_HOST_DEVICE T & | k () |
| | Short access to the third element. More...
|
| |
| const CU_HOST_DEVICE T & | k () const |
| | Short access to the third element. More...
|
| |
| CU_HOST_DEVICE void | l (const T &v) |
| | Short access to the fourth element. More...
|
| |
| CU_HOST_DEVICE T & | l () |
| | Short access to the fourth element. More...
|
| |
| const CU_HOST_DEVICE T & | l () const |
| | Short access to the fourth element. More...
|
| |
| CU_HOST_DEVICE Vector< 2, T > | projectXY (void) |
| | Extract the two first elements of the vector. More...
|
| |
| CU_HOST_DEVICE bool | operator< (const Vector &other) const |
| | Comparison operator. More...
|
| |
| CU_HOST_DEVICE bool | operator<= (const Vector &other) const |
| | Comparison operator. More...
|
| |
| CU_HOST_DEVICE bool | operator> (const Vector &other) const |
| | Comparison operator. More...
|
| |
| CU_HOST_DEVICE bool | operator>= (const Vector &other) const |
| | Comparison operator. More...
|
| |
|
| typedef T | value_type |
| |
| typedef T & | reference_type |
| |
| typedef T * | pointer_type |
| |
| typedef T * | iterator |
| |
| static CU_HOST_DEVICE size_t | size () |
| | Returns the size of the vector (i.e. More...
|
| |
| const typedef T & | const_reference_type |
| |
| const typedef T * | const_pointer_type |
| |
| const typedef T * | const_iterator |
| |
| static const size_t | numElems |
| |
| T | elems [dim] |
| |
| CU_HOST_DEVICE Vector< dim, T > | operator- (const Vector< dim, T > &v, const T &value) |
| | Substact a value to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | operator- (const T &value, const Vector< dim, T > &v) |
| | Equivalent to substracting a vector with all component the same to another one. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | operator+ (const Vector< dim, T > &v, const T &value) |
| | Add a value to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | operator+ (const T &value, const Vector< dim, T > &v) |
| | Add a value to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE float | norm (float s) |
| | Euclidean norm of a real. More...
|
| |
| CU_HOST_DEVICE T | norm (const Vector< dim, T > &v) |
| | Function-version of the norm. More...
|
| |
| CU_HOST_DEVICE float | normsq (float s) |
| | Euclidean square norm of a real. More...
|
| |
| CU_HOST_DEVICE T | normsq (const Vector< dim, T > &v) |
| | Function-version of the square norm. More...
|
| |
| CU_HOST_DEVICE float | normalized (float) |
| | Normalized real. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | normalized (const Vector< dim, T > &v) |
| | Function-version of the square norm. More...
|
| |
| CU_HOST_DEVICE T | operator% (const Vector< 2, T > &v1, const Vector< 2, T > &v2) |
| | Cross product v1 x v2. More...
|
| |
| CU_HOST_DEVICE Vector< 3, T > | operator% (const Vector< 3, T > &v1, const Vector< 3, T > &v2) |
| | Cross product v1 x v2. More...
|
| |
| CU_HOST_DEVICE T | operator^ (const Vector< 2, T > &v1, const Vector< 2, T > &v2) |
| | Cross product v1 x v2 (French notation) More...
|
| |
| CU_HOST_DEVICE T | operator^ (const Vector< 1, T > &, const Vector< 1, T > &) |
| | Cross product v1 x v2 (French notation) More...
|
| |
| CU_HOST_DEVICE Vector< 3, T > | operator^ (const Vector< 3, T > &v1, const Vector< 3, T > &v2) |
| | Cross product v1 x v2 (French notation) More...
|
| |
| CU_HOST_DEVICE float | angle (const Vector< 2, T > &v) |
| | Angle of the vector with (0,1) More...
|
| |
| CU_HOST_DEVICE float | angle (const Vector< 3, T > &v1, const Vector< 3, T > &v2) |
| | Non-oriented angle between v1 and v2. More...
|
| |
| CU_HOST_DEVICE float | angle (const Vector< 2, T > &v1, const Vector< 2, T > &v2) |
| | Oriented angle between v1 and v2. More...
|
| |
| CU_HOST_DEVICE float | angle (const Vector< 1, T > &v1, const Vector< 1, T > &v2) |
| | Oriented angle between v1 and v2. More...
|
| |
| CU_HOST_DEVICE float | angle (const Vector< 3, T > &v1, const Vector< 3, T > &v2, const Vector< 3, T > &ref) |
| | Oriented angle between v1 and v2 with ref to orient the space. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | fabs (const Vector< dim, T > &v) |
| | Return the vector whose component is the absolute value of the input vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | max (const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Return the vector whose component is the max of the two input vectors components. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | min (const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Return the vector whose component is the min of the two input vectors components. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | trim (const Vector< dim, T > &v, const Vector< dim, T > &minv, const Vector< dim, T > &maxv) |
| | Return the vector with components clipped to min and max vectors. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | multiply (const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Return the vector whose component is the product of the two input vectors components. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | divide (const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Return the vector whose component is the ratio of the two input vectors components. More...
|
| |
| CU_HOST_DEVICE Vector< 3, T > | orthogonal (const Vector< 3, T > &v) |
| | Find a vector orthogonal to v. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (T(*fct)(T1), const Vector< dim, T1 > &v) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (const T &(*fct)(const T &, const T &), const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (T(*fct)(const T &, const T &), const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (T(*fct)(T, T), const Vector< dim, T > &v1, const Vector< dim, T > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (const T &(*fct)(const T1 &, const T2 &), const Vector< dim, T1 > &v1, const Vector< dim, T2 > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (T(*fct)(const T1 &, const T2 &), const Vector< dim, T1 > &v1, const Vector< dim, T2 > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim, T > | map (T(*fct)(T1, T2), const Vector< dim, T1 > &v1, const Vector< dim, T2 > &v2) |
| | Map a function to all elements of a vector. More...
|
| |
| CU_HOST_DEVICE Vector< dim+1, T > | homogeneous (const Vector< dim, T > &v) |
| | Create a homogeneous coordinate vector from a cartesian one. More...
|
| |
| CU_HOST_DEVICE Vector< dim - 1, T > | cartesian (const Vector< dim, T > &v) |
| | Extract the cartesion coordinates from a homogeneous vector. More...
|
| |
template<class T>
class mgx::Color< T >
A utility class to encapsulate color data.
Definition at line 34 of file Color.hpp.