interpolate MethodStatic
Simple interpolation between values a
and b
with fraction f
.
- If
f = 0
, thena
is returned and iff = 1
, thenb
is returned. - For maximum accuracy, we choose
a
orb
as starting point based on fractionf
.
interpolate(a: number, f: number, b: number): number
Parameter | Type | Description |
---|---|---|
a | number | |
f | number | |
b | number |
Returns - number
Defined in
- Geometry.ts Line 919
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.