Applies fn to each of a triangle's corner points, returning the result.

const t = apply(tri, p => {
const r = 10;
return {
x: p.x + (Math.random()*r*2) - r,
y: p.y
}
});