Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinearScale<R, RU>

Type parameters

  • R: RU

  • RU

Hierarchy

Implements

Index

Constructors

constructor

  • new LinearScale(x0: number, x1: number, fx: Interpolator<R, RU>): LinearScale

Properties

dx

dx: number

fx

fx: Interpolator<R, RU>

x0

x0: number

Methods

clampDomain

  • clampDomain(xMin?: undefined | number, xMax?: undefined | number, zMin?: undefined | number, zMax?: undefined | number, epsilon?: undefined | number): LinearScale<R, RU>

clampScale

  • clampScale(x: number): R

domain

  • domain(): number[]
  • domain(xs: ReadonlyArray<number>): LinearScale<R, RU>
  • domain(x0: number, x1?: undefined | number): LinearScale<R, RU>

equals

  • equals(that: unknown): boolean

interpolator

norm

  • norm(x: number): number

range

scale

  • scale(x: number): R

solveDomain

  • solveDomain(x1: number, y1: RU, x2?: undefined | number, y2?: RU, epsilon?: undefined | number): LinearScale<R, RU>

unscale

  • unscale(y: RU): number

Static form

Static from

Static linear

Static time