UNPKG

@qbead/bloch-sphere

Version:

A 3D Bloch Sphere visualisation built with Three.js and TypeScript.

7 lines (6 loc) 133 B
/** * Standard linear interpolation function */ export function lerp(a: number, b: number, t: number) { return a + t * (b - a) }