FloatRange


Declaration

[Serializable]
public struct FloatRange

Description

A range of float values.

Properties

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

Constructors

FloatRangeCreates 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.