11#include "../geometry/geometry.hpp"
12#include "../macros.hpp"
15hi_export_module(hikogui.color.color_space);
17hi_export
namespace hi {
44 auto const W =
vector3{1.0f * (w.x() / w.y()), 1.0f, 1.0f * (w.z() / w.y())};
47 auto const C =
matrix3{r, g, b};
constexpr matrix3 color_primaries_to_RGBtoXYZ(float wx, float wy, float rx, float ry, float gx, float gy, float bx, float by) noexcept
Create a color space conversion matrix.
Definition color_space.hpp:36
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
A 2D or 3D homogenius matrix for transforming homogenious vectors and points.
Definition matrix3.hpp:36
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector3.hpp:26