export const keepXLargerThan = (otherX: number) => (p: Point2D): Point2D => ({
    x: otherX > p.x ? otherX : p.x,
    y: p.y,
});