(
from: { readonly min: number; readonly max: number },
to: { readonly min: number; readonly max: number },
t01: number
)
| 629 | const lerp = (a: number, b: number, t01: number): number => a + (b - a) * clamp01(t01); |
| 630 | |
| 631 | const lerpDomain = ( |
| 632 | from: { readonly min: number; readonly max: number }, |
| 633 | to: { readonly min: number; readonly max: number }, |
| 634 | t01: number |
| 635 | ): { readonly min: number; readonly max: number } => { |
| 636 | return normalizeDomain(lerp(from.min, to.min, t01), lerp(from.max, to.max, t01)); |
| 637 | }; |
| 638 | |
| 639 | const computePlotScissorDevicePx = ( |
| 640 | gridArea: GridArea |
no test coverage detected