Table of Contents

Class MinMaxFloat

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Class for representing a bounded range.

[Version(1, 2, 0)]
[Serializable]
public class MinMaxFloat
Inheritance
MinMaxFloat
Inherited Members
Extension Methods

Constructors

MinMaxFloat()

Initializes a new instance with a range of [0, 1].

MinMaxFloat(float, float)

Initializes a new instance with the specified range.

Fields

max

The maximum value of the range.

min

The minimum value of the range.

Methods

Clamp(float)

Clamps the value to the range [min, max].

InverseLerp(float)

Calculates the inverse linear interpolation between min and max, that is the parameter t such that Lerp(t) = value.

Lerp(float)

Calculates the linear interpolation between min and max.

LerpUnclamped(float)

Calculates the linear interpolation between min and max without clamping the t parameter.