Skip to content

NumberRange

NumberRange is a data type that represents a range between two numbers, defined by a minimum and maximum value.

Properties

  • Min: number
  • Max: number

Methods

New(from: number, to: number) → NumberRange

Creates a new NumberRange object with the specified minimum and maximum values.

Lerp(t: number) → number

Linearly interpolates between the minimum and maximum values of the range based on the parameter t, which is typically between 0 and 1.