Using Vec2d instead of Point