ClampedRange


Declaration

[Serializable]
public struct ClampedRange : INumberRange<float>, IRange<float>

Description

A range of values clamped between a lower and upper bound.

Properties

clampThe clamping values of the range.
minThe lower bound of the range.
maxThe upper bound of the range.
DeltaThe difference between the maximum and minimum values (Read only).
MedianThe median value of the range (Read only).

Constructors

ClampedRangeCreates a new range with the specified values.

Methods

RandomReturns a random value in the range.
IncludesChecks if a value is in the range.
ClampClamps a value to the range.
LerpLinearly interpolates between the range by t.
InverseLerpCalculates the linear parameter t that produces the interpolant value within the range.