Blender V4.3
BLI_math_color.hh File Reference
#include <cmath>
#include <type_traits>
#include "BLI_color.hh"
#include "BLI_math_base.hh"
#include "BLI_math_matrix_types.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::math
 

Functions

template<eAlpha Alpha>
ColorSceneLinear4f< Alpha > blender::math::interpolate (const ColorSceneLinear4f< Alpha > &a, const ColorSceneLinear4f< Alpha > &b, const float t)
 
template<eAlpha Alpha>
ColorSceneLinearByteEncoded4b< Alpha > blender::math::interpolate (const ColorSceneLinearByteEncoded4b< Alpha > &a, const ColorSceneLinearByteEncoded4b< Alpha > &b, const float t)
 
float3 blender::math::whitepoint_from_temp_tint (float temperature, float tint)
 
bool blender::math::whitepoint_to_temp_tint (const float3 &white, float &temperature, float &tint)
 
float3x3 blender::math::chromatic_adaption_matrix (const float3 &from_XYZ, const float3 &to_XYZ)