20 #ifndef ANTKEEPER_COLOR_CCT_HPP
21 #define ANTKEEPER_COLOR_CCT_HPP
46 (T{0.860117757} + T{1.54118254e-4} * t + T{1.28641212e-7} * tt) / (T{1} + T{8.42420235e-4} * t + T{7.08145163e-7} * tt),
47 (T{0.317398726} + T{4.22806245e-5} * t + T{4.20481691e-8} * tt) / (T{1} - T{2.89741816e-5} * t + T{1.61456053e-7} * tt)
math::vec3< T > cct_to_xyy(T t)
Calculates CIE xyY colorspace chromaticity coordinates given a correlated color temperature using Kry...
constexpr math::vec3< T > xyy_to_xyz(const math::vec3< T > &x) noexcept
Transforms a CIE xyY color into the CIE XYZ colorspace.
constexpr math::vec3< T > ucs_to_xyy(const math::vec2< T > &uv, T y=T{1}) noexcept
Transforms CIE 1960 UCS chromaticity coordinates into the CIE xyY colorspace.
math::vec2< T > cct_to_ucs(T t) noexcept
Calculates CIE 1960 UCS colorspace chromaticity coordinates given a correlated color temperature usin...
math::vec3< T > cct_to_xyz(T t)
Calculates CIE XYZ colorspace chromaticity coordinates given a correlated color temperature using Kry...