Blender V5.0
blender::color::FloatTraits Struct Reference

#include <BLI_color_mix.hh>

Public Types

using ValueType = float
using BlendType = float

Static Public Member Functions

static BlendType divide_round (BlendType a, BlendType b)
static BlendType min (BlendType a, BlendType b)
static BlendType max (BlendType a, BlendType b)
static ValueType round (float f)

Static Public Attributes

static const float range = 1.0f
static const float frange = 1.0f
static const float cmpRange = 0.9999f
static const int expandedRange = 1.0f
static const float unit = 1.0f
static const int bytes = 4

Detailed Description

Definition at line 56 of file BLI_color_mix.hh.

Member Typedef Documentation

◆ BlendType

Definition at line 58 of file BLI_color_mix.hh.

◆ ValueType

Definition at line 57 of file BLI_color_mix.hh.

Member Function Documentation

◆ divide_round()

BlendType blender::color::FloatTraits::divide_round ( BlendType a,
BlendType b )
inlinestatic

Definition at line 68 of file BLI_color_mix.hh.

References b.

◆ max()

BlendType blender::color::FloatTraits::max ( BlendType a,
BlendType b )
inlinestatic

Definition at line 78 of file BLI_color_mix.hh.

References b, and max_ff().

◆ min()

BlendType blender::color::FloatTraits::min ( BlendType a,
BlendType b )
inlinestatic

Definition at line 73 of file BLI_color_mix.hh.

References b, and min_ff().

◆ round()

ValueType blender::color::FloatTraits::round ( float f)
inlinestatic

Definition at line 84 of file BLI_color_mix.hh.

Member Data Documentation

◆ bytes

const int blender::color::FloatTraits::bytes = 4
inlinestatic

Definition at line 66 of file BLI_color_mix.hh.

◆ cmpRange

const float blender::color::FloatTraits::cmpRange = 0.9999f
inlinestatic

Definition at line 62 of file BLI_color_mix.hh.

◆ expandedRange

const int blender::color::FloatTraits::expandedRange = 1.0f
inlinestatic

Definition at line 63 of file BLI_color_mix.hh.

◆ frange

const float blender::color::FloatTraits::frange = 1.0f
inlinestatic

Definition at line 61 of file BLI_color_mix.hh.

◆ range

const float blender::color::FloatTraits::range = 1.0f
inlinestatic

Definition at line 60 of file BLI_color_mix.hh.

◆ unit

const float blender::color::FloatTraits::unit = 1.0f
inlinestatic

Definition at line 65 of file BLI_color_mix.hh.


The documentation for this struct was generated from the following file: