Skip to main content

is_point_in_rect

Function is_point_in_rect 

Source
pub fn is_point_in_rect(local_p: (f32, f32), size: (f32, f32)) -> bool
Expand description

Performs a hit test for a point against a rectangle in local space. The point is expected to be already transformed into local space (using inverse matrix).