Struct thl::NormalizationCurve#

struct NormalizationCurve#

Public Types

enum class Type : uint8_t#

Values:

enumerator Linear#
enumerator PowerLaw#
enumerator Custom#

Public Functions

inline float apply(float normalized) const#

Forward direction: normalized [0,1] -> proportion [0,1].

inline float apply_inverse(float proportion) const#

Inverse direction: proportion [0,1] -> normalized [0,1].

inline bool is_linear() const#

Public Members

Type m_type = Type::Linear#
float m_skew = 1.0f#
NormalizeCurve m_to = nullptr#
NormalizeCurve m_from = nullptr#