EulerRange


Declaration

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

Description

A range of euler values wrapped between -360 and +360.

Static Properties

zeroShorthand for writing EulerRange(0f, 0f).
piShorthand for writing EulerRange(0f, 180f).
pi2Shorthand for writing EulerRange(0f, 360f).
halfRangeShorthand for writing EulerRange(-180f, 180f).
fullRangeShorthand for writing EulerRange(-360f, 360f).

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

EulerRangeCreates 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.
WrapWraps a value within the range.
LerpLinearly interpolates between the range by t.
InverseLerpCalculates the linear parameter t that produces the interpolant value within the range.