Changed `Vec2d` to `&Vec2d` for consistency