pub fn offset(rect: &Rectangle, point: Vector2) -> Vector2
Returns the signed offset from the point to the nearest edge of the rectangle.