|
|
constexpr | XYZColor () |
| | Constructs an invalid XYZColor with all components set to Invalid.
|
| | XYZColor (const ACIColor &) |
| | Constructs an XYZColor by converting from an ACIColor.
|
| | XYZColor (const HSBColor &) |
| | Constructs an XYZColor by converting from an HSBColor.
|
| | XYZColor (const HSLColor &) |
| | Constructs an XYZColor by converting from an HSLColor.
|
| | XYZColor (const LABColor &) |
| | Constructs an XYZColor by converting from a LABColor.
|
| | XYZColor (const RGBColor &) |
| | Constructs an XYZColor by converting from an RGBColor.
|
| constexpr | XYZColor (const Vector< 4, fltp04 > &color) |
| | Constructs an XYZColor from a 4-component vector.
|
| constexpr | XYZColor (fltp04 x, fltp04 y, fltp04 z, fltp04 a=1.0f) |
| | Constructs an XYZColor from individual X, Y, Z, and alpha components, clamped to valid ranges.
|
| void | setA (fltp04 a) |
| | Sets the alpha component.
|
| void | setX (fltp04 x) |
| | Sets the X component, clamped to [0, 0.9505].
|
| void | setY (fltp04 y) |
| | Sets the Y component, clamped to [0, 1.0].
|
| void | setZ (fltp04 z) |
| | Sets the Z component, clamped to [0, 1.089].
|
| constexpr | Vector (const fltp04 &prefix, typename std::enable_if< tdims >=2, const Vector< t_dims - 1, fltp04 > & >::type vector) |
| | Creates a vector where the prefix scaler is combined with the suffix vector.
|
| constexpr | Vector (const fltp04 &prefix_a, const fltp04 &prefix_b, typename std::enable_if< tdims >=3, const Vector< tdims - 1, fltp04 > & >::type vector) |
| | Creates a vector where the prefix scaler values are combined with the suffix vector.
|
| constexpr | Vector (const fltp04 &scaler) noexcept |
| constexpr | Vector (const fltp04 &x, const fltp04 &y, const fltp04 &z, typename std::enable_if< tdims==4, const fltp04 & >::type w) |
| | Sets values in each dimension to the respective value in the passed in scaler.
|
| constexpr | Vector (const fltp04 &x, const fltp04 &y, const typename std::enable_if< tdims==3, const fltp04 & >::type z) |
| | Sets values in each dimension to the respective value in the passed in scaler.
|
| constexpr | Vector (const fltp04 &x, typename std::enable_if< tdims==2, const fltp04 & >::type y) |
| | Sets values in each dimension to the respective value in the passed in scaler.
|
| constexpr | Vector (const fltp04(&vector)[t_dims]) |
| | Given a container of statically determined array, transforms it to a vector.
|
| constexpr | Vector (const Vector< getMax(tdims - 2, 0), fltp04 > &vector, const fltp04 &suffix_a, typename std::enable_if< tdims >=3, const fltp04 & >::type suffix_b) |
| | Creates a vector where the prefix vector is combined with the suffix scalers.
|
| constexpr | Vector (const Vector< t_dims, t_vec_type > &vector) noexcept |
| constexpr | Vector (const Vector< tdims - 1, fltp04 > &vector, typename std::enable_if< tdims >=2, const fltp04 & >::type suffix) |
| | Creates a vector where the prefix vector is combined with the suffix scalers.
|
| constexpr decltype(auto) | as () const |
| | Returns the vector as a new time of vector.
|
| constexpr uint01 | dimensionalIndex () const |
| | Used with template arguments MAX or MIN, Gets the dimensional index for the value that is either max or min.
|
| constexpr fltp04 | dimensionalValue () const |
| | Used with template arguments MAX or MIN, Gets the dimensional value for the value that is either max or min.
|
| constexpr t_magnitude_type | magnitude () const |
| | Vectors are commonly used to model forces such as wind, sea current, gravity, and electromagnetism.
|
| constexpr fltp04 | magnitudeSquared () const |
| | Vectors are commonly used to model forces such as wind, sea current, gravity, and electromagnetism.
|
| constexpr Vector< t_dims, t_norm_type > | normalized (Vector< t_dims, t_norm_type > value_if_nan=Constant< Vector< t_dims, t_norm_type > >::Invalid) const |
| | Gets the normalized, or unit length representation of this vector.
|
| constexpr | operator fltp04 & () |
| | For Single dimensional objects, they may also be considered a scaler, thus allow implicit conversion from a vector to a scaler when the dimension of the vector is 1.
|
| constexpr | operator fltp04 & () |
| | For Single dimensional objects, they may also be considered a scaler, thus allow implicit conversion from a vector to a scaler when the dimension of the vector is 1.
|
| constexpr Vector< t_dims, fltp04 > | operator- () const |
| | Negation operator.
|
| constexpr Vector< t_dims, fltp04 > & | operator= (const fltp04 &scaler) |
| | Assignment operator.
|
| constexpr fltp04 & | operator[] (uint01 dimension_index) |
| | Accesses the value of a certain dimension.
|
| constexpr fltp04 | product () const |
| | Returns the product, or value of each dimension multiplied together.
|
| constexpr fltp04 | sum () const |
| | Returns the sum, or value of each dimension added together.
|
Forward declaration of HSLColor.
A color defined in the CIE 1931 XYZ absolute color space.
In opposition to the previous models, the CIE XYZ model defines an absolute color space. It is also known as the CIE 1931 XYZ color space and stands for: X, which can be compared to red Ranges from 0 to 0.9505 Y, which can be compared to green Ranges from 0 to 1.0 Z, which can be compared to blue Ranges from 0 to 1.089
- See also
- RGBColor, LABColor, HSBColor
Definition at line 54 of file XYZColor.h.