| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 190× 1057× | export function center(bounds) {
return {
x: bounds.x + (bounds.width / 2),
y: bounds.y + (bounds.height / 2)
};
}
export function delta(a, b) {
return {
x: a.x - b.x,
y: a.y - b.y
};
} |