20 #ifndef ANTKEEPER_COLOR_XYY_HPP
21 #define ANTKEEPER_COLOR_XYY_HPP
53 const T d = (T{1} / (T{-2} * x[0] + T{12} * x[1] + T{3}));
67 return math::vec3<T>{(x[0] * x[2]) / x[1], x[2], ((T{1} - x[0] - x[1]) * x[2]) / x[1]};
constexpr math::vec3< T > xyy_to_xyz(const math::vec3< T > &x) noexcept
Transforms a CIE xyY color into the CIE XYZ colorspace.
constexpr T xyy_to_luminance(const math::vec3< T > &x) noexcept
Returns the luminance of a CIE xyY color.
constexpr math::vec2< T > xyy_to_ucs(const math::vec3< T > &x) noexcept
Transforms a CIE xyY color into the CIE 1960 UCS colorspace.