11#include "../geometry/module.hpp"
34 hilet w = vector3{wx, wy, 1.0f - wx - wy};
35 hilet r = vector3{rx, ry, 1.0f - rx - ry};
36 hilet g = vector3{gx, gy, 1.0f - gx - gy};
37 hilet b = vector3{bx, by, 1.0f - bx - by};
40 hilet W = vector3{1.0f * (w.x() / w.y()), 1.0f, 1.0f * (w.z() / w.y())};
46 hilet S = scale3{~C * W};
#define hilet
Invariant should be the default for variables.
Definition utility.hpp:23
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:32
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11
geo::matrix< 3 > matrix3
A 3D homogenious transformation matrix.
Definition matrix.hpp:599
A 2D or 3D homogenius matrix for transforming homogenious vectors and points.
Definition matrix.hpp:33