|
MaterialX 1.38.2
|
A three-component color value (double-precision) More...
#include <Types.h>
Public Member Functions | |
| Color3d (double r, double g, double b) | |
Public Member Functions inherited from VectorN< Color3d, double, 3 > | |
| VectorN (Uninit) | |
| VectorN (double s) | |
| VectorN (const std::array< double, N > &arr) | |
| VectorN (const vector< double > &vec) | |
| VectorN (const double *begin, const double *end) | |
| bool | operator== (const Color3d &rhs) const |
| Return true if the given vector is identical to this one. | |
| bool | operator!= (const Color3d &rhs) const |
| Return true if the given vector differs from this one. | |
| bool | operator< (const Color3d &rhs) const |
| Compare two vectors lexicographically. | |
| double & | operator[] (size_t i) |
| Return the scalar value at the given index. | |
| const double & | operator[] (size_t i) const |
| Return the const scalar value at the given index. | |
| Color3d | operator+ (const Color3d &rhs) const |
| Component-wise addition of two vectors. | |
| VectorN & | operator+= (const Color3d &rhs) |
| Component-wise addition of two vectors. | |
| Color3d | operator- (const Color3d &rhs) const |
| Component-wise subtraction of two vectors. | |
| Color3d | operator- () const |
| Unary negation of a vector. | |
| VectorN & | operator-= (const Color3d &rhs) |
| Component-wise subtraction of two vectors. | |
| Color3d | operator* (const Color3d &rhs) const |
| Component-wise multiplication of two vectors. | |
| Color3d | operator* (double s) const |
| Component-wise multiplication of a vector by a scalar. | |
| VectorN & | operator*= (const Color3d &rhs) |
| Component-wise multiplication of two vectors. | |
| VectorN & | operator*= (double s) |
| Component-wise multiplication of a vector by a scalar. | |
| Color3d | operator/ (const Color3d &rhs) const |
| Component-wise division of two vectors. | |
| Color3d | operator/ (double s) const |
| Component-wise division of a vector by a scalar. | |
| VectorN & | operator/= (const Color3d &rhs) |
| Component-wise division of two vectors. | |
| VectorN & | operator/= (double s) |
| Component-wise division of a vector by a scalar. | |
| double | getMagnitude () const |
| Return the magnitude of the vector. | |
| Color3d | getNormalized () const |
| Return a normalized vector. | |
| double | dot (const Color3d &rhs) const |
| Return the dot product of two vectors. | |
| Iterator | begin () |
| ConstIterator | begin () const |
| Iterator | end () |
| ConstIterator | end () const |
| double * | data () |
| Return a pointer to the underlying data array. | |
| const double * | data () const |
| Return a const pointer to the underlying data array. | |
Additional Inherited Members | |
Public Types inherited from VectorN< Color3d, double, 3 > | |
| using | Iterator = typename std::array< double, N >::iterator |
| using | ConstIterator = typename std::array< double, N >::const_iterator |
Static Public Member Functions inherited from VectorN< Color3d, double, 3 > | |
| static constexpr size_t | numElements () |
| Return the number of scalar elements for the vector. | |
Protected Attributes inherited from VectorN< Color3d, double, 3 > | |
| std::array< double, N > | _arr |
A three-component color value (double-precision)