UIntRange


Declaration

[Serializable]
public struct UIntRange : INumberRange<uint>, IRange<uint>

Description

A range of uint values.

Static Properties

zeroShorthand for writing UIntRange(0, 0).
oneShorthand for writing UIntRange(1, 1).
minMaxShorthand for writing UIntRange(uint.MinValue, uint.MaxValue).

Properties

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

UIntRangeCreates a new range with the specified values.

Methods

RandomReturns a random value in the range [inclusive, exclusive).
RandomInclusiveReturns a random value in the range [inclusive, inclusive].
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.