Skip to content

Interpolation

Below we use Points.interpolate to interpolate { x, y } values.

import { Points } from "https://unpkg.com/@ixfx/geometry/bundle";
Points.interpolate(amount, startPos, targetPos);

In the below example we interpolate from { x: 0.1, y: 0.1} to { x: 0.8, y: 0.9 }.