offset

Function offset 

Source
pub fn offset(rect: &Rectangle, point: Vector2) -> Vector2
Expand description

Returns the signed offset from the point to the nearest edge of the rectangle.