INumberRange<T>


Declaration

public interface INumberRange<T> : IRange<T>

Description

A generic interface for a range of number values.

Type Parameters

TThe type of values in the range.

Properties

DeltaThe difference between the maximum and minimum values (Read only).
MedianThe median value of the range (Read only).

Methods

RandomReturns a random value 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.
Inherited

Properties

minThe lower bound of the range.
maxThe upper bound of the range.
Inherited

Methods

IncludesChecks if a value is in the range.