Bi-Linear filtering in pure TypeScript
(I'm honestly impressed by how well JavaScript performs...)