DoubleRange


Declaration

[Serializable]
public struct DoubleRange

Description

A range of double values.

Static Properties

zeroShorthand for writing DoubleRange(0.0, 0.0).
oneShorthand for writing DoubleRange(1.0, 1.0).
percentShorthand for writing DoubleRange(0.0, 1.0).
positiveShorthand for writing DoubleRange(0.0, double.MaxValue).
negativeShorthand for writing DoubleRange(double.MinValue, 0.0).
minMaxShorthand for writing DoubleRange(double.MinValue, double.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

DoubleRangeCreates a new range with the specified values.

Methods

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.