Callable
- __call(x: number): Output
-
Parameters
Returns Output
Methods
clamp
- clamp(): boolean
- clamp(clamp: boolean): Linear<Range, Output>
-
Returns boolean
-
Parameters
Returns Linear<Range, Output>
domain
- domain(): number[]
- domain(numbers: number[]): Linear<Range, Output>
-
Returns number[]
-
Parameters
Returns Linear<Range, Output>
interpolate
- interpolate(): function
- interpolate(factory: function): Linear<Range, Output>
-
Returns function
-
- (a: Range, b: Range): function
-
Parameters
Returns function
-
-
Parameters
Returns Output
-
Parameters
-
factory: function
-
- (a: Range, b: Range): function
-
Parameters
Returns function
-
-
Parameters
Returns Output
Returns Linear<Range, Output>
invert
- invert(y: number): number
-
Parameters
Returns number
nice
- nice(count?: number): Linear<Range, Output>
-
Parameters
Returns Linear<Range, Output>
range
- range(): Range[]
- range(values: Range[]): Linear<Range, Output>
-
Returns Range[]
-
Parameters
Returns Linear<Range, Output>
rangeRound
- rangeRound(values: number[]): Linear<number, number>
-
Parameters
Returns Linear<number, number>
tickFormat
- tickFormat(count?: number, format?: string): function
-
Parameters
-
Optional count: number
-
Optional format: string
Returns function
-
-
Parameters
Returns string
ticks
- ticks(count?: number): number[]
-
Parameters
Returns number[]