Blender  V3.3
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
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 55 of file BLI_color_mix.hh.

Member Typedef Documentation

◆ BlendType

Definition at line 57 of file BLI_color_mix.hh.

◆ ValueType

Definition at line 56 of file BLI_color_mix.hh.

Member Function Documentation

◆ divide_round()

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

Definition at line 67 of file BLI_color_mix.hh.

References Freestyle::a, and usdtokens::b().

◆ max()

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

Definition at line 77 of file BLI_color_mix.hh.

References Freestyle::a, usdtokens::b(), and min_ff().

◆ min()

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

Definition at line 72 of file BLI_color_mix.hh.

References Freestyle::a, usdtokens::b(), and min_ff().

◆ round()

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

Definition at line 83 of file BLI_color_mix.hh.

Member Data Documentation

◆ bytes

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

Definition at line 65 of file BLI_color_mix.hh.

◆ cmpRange

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

Definition at line 61 of file BLI_color_mix.hh.

◆ expandedRange

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

Definition at line 62 of file BLI_color_mix.hh.

◆ frange

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

Definition at line 60 of file BLI_color_mix.hh.

◆ range

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

Definition at line 59 of file BLI_color_mix.hh.

◆ unit

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

Definition at line 64 of file BLI_color_mix.hh.


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