|
MathLib
|
Classes | |
| class | BasicHSL |
| class | BasicHSV |
| class | BasicHue |
| class | BasicRGB |
| class | BasicUnitRGB |
Typedefs | |
Hue | |
Various Hue class type aliases
| |
| using | Huef = BasicHue< float > |
| using | Hued = BasicHue< double > |
| using | Hue = BasicHue< double > |
| using | Huel = BasicHue< long double > |
RGB | |
Various RGB class type aliases
| |
| using | RGBb = BasicRGB< uint8_t > |
| using | RGBs = BasicRGB< unsigned short > |
| using | RGBi = BasicRGB< unsigned int > |
| using | UnitRGBf = BasicUnitRGB< float > |
| using | UnitRGBd = BasicUnitRGB< double > |
| using | UnitRGB = BasicUnitRGB< double > |
| using | UnitRGBl = BasicUnitRGB< long double > |
| using | RGB8 = BasicRGB< uint8_t > |
| using | RGB16 = BasicRGB< unsigned short > |
| using | RGB32 = BasicRGB< unsigned int > |
HSV | |
Various HSV class type aliases | |
| using | HSVf = BasicHSV< float > |
| using | HSVd = BasicHSV< double > |
| using | HSV = BasicHSV< double > |
| using | HSVld = BasicHSV< long double > |
HSL | |
Various HSL class type aliases | |
| using | HSLf = BasicHSL< float > |
| using | HSLd = BasicHSL< double > |
| using | HSL = BasicHSL< double > |
| using | HSLl = BasicHSL< long double > |
Functions | |
| template<std::floating_point T> | |
| BasicHSV< T > | ToHSV (const BasicUnitRGB< T > &input) |
| template<std::floating_point T> | |
| BasicUnitRGB< T > | ToRGB (const BasicHSV< T > &input_hsv) |
| template<std::floating_point T> | |
| BasicHSL< T > | ToHSL (const BasicHSV< T > &input_hsv) |
| template<std::floating_point T> | |
| BasicHSV< T > | ToHSV (const BasicHSL< T > &input_hsl) |
| template<std::floating_point T> | |
| Math::BasicVector3D< T > | palette (T t, Math::BasicVector3D< T > a, Math::BasicVector3D< T > b, Math::BasicVector3D< T > c, Math::BasicVector3D< T > d) |
| Math::BasicVector3D< T > palette | ( | T | t, |
| Math::BasicVector3D< T > | a, | ||
| Math::BasicVector3D< T > | b, | ||
| Math::BasicVector3D< T > | c, | ||
| Math::BasicVector3D< T > | d | ||
| ) |
Generate a continuous color gradient
| t | |
| a | |
| b | |
| c | |
| d |
Definition at line 30 of file Palette.hpp.
Converts a HSV color to a HSL color
| T | A floating point type |
| input | A BasicHSV color to convert |
Definition at line 211 of file Conversions.hpp.
Converts a HSL color to a HSV color
| T | A floating point type |
| input | A BasicHSL color to convert |
Definition at line 236 of file Conversions.hpp.
| BasicHSV< T > ToHSV | ( | const BasicUnitRGB< T > & | input | ) |
Converts a normalized RGB color to HSV
| T | A floating point type |
| input | A BasicUnitRGB color to convert |
Definition at line 33 of file Conversions.hpp.
| BasicUnitRGB< T > ToRGB | ( | const BasicHSV< T > & | input_hsv | ) |
Converts a HSV color to a unit RGB color
| T | A floating point type |
| input | A BasicHSV color to convert |
Definition at line 112 of file Conversions.hpp.