|
MathLib
|
#include <color/Types.hpp>
Public Types | |
| enum | Color { Red , Yellow , Green , Cyan , Blue , Magenta } |
Types | |
| using | value_type = T |
| The type of the underlying implementation for each color. | |
Public Member Functions | |
| constexpr BasicHSV & | operator= (const BasicHSV &other) |
| constexpr enum Color | hueColor () const |
| constexpr bool | isNormalized () const |
Constructors | |
| constexpr | BasicHSV ()=default |
| constexpr | BasicHSV (Math::BasicDegree< value_type > h, value_type s, value_type v) |
| constexpr | BasicHSV (const BasicHSV &other) |
Element Access | |
| constexpr Math::BasicDegree< value_type > | hue () const |
| constexpr value_type | saturation () const |
| constexpr value_type | value () const |
| constexpr void | hue (Math::BasicDegree< value_type > input) |
| constexpr void | saturation (value_type input) |
| constexpr void | value (value_type input) |
Invalid Value Check | |
| constexpr bool | isNaN () const |
| constexpr bool | isInf () const |
Static Public Member Functions | |
Constants | |
| static constexpr BasicHSV< T > | min () |
| static constexpr BasicHSV< T > | max () |
Protected Member Functions | |
| constexpr bool | _isInBounds (value_type component, value_type lower_bound=0.0, value_type upper_bound=1.0) const |
| constexpr bool | _isInBoundsUpTo (value_type component, value_type lower_bound=0.0, value_type upper_bound=1.0) const |
Protected Attributes | |
| Math::BasicDegree< value_type > | _hue {} |
| value_type | _saturation {} |
| value_type | _value {} |
Friends | |
| constexpr bool | approximately_equal_to (const BasicHSV< T > &value_to_test, const BasicHSV< T > &value_it_should_be, T tolerance=T{0.0002}) |
Related Symbols | |
(Note that these are not member symbols.) | |
Global Operators | |
| constexpr BasicHSV< T > | operator+ (const BasicHSV< T > &left, const BasicHSV< T > &right) |
| constexpr BasicHSV< T > | operator- (const BasicHSV< T > &left, const BasicHSV< T > &right) |
The definition of an HSV color
This represents a color as Hue, Saturation, and Value.
| using value_type = T |
|
inlineconstexpr |
|
inlineconstexprprotected |
|
inlineconstexprprotected |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
protected |
|
protected |
|
protected |