Skip to main content

contains

Function contains 

Source
pub fn contains(t: &HitTarget, point: [f32; 2], tolerance: f32) -> bool
Expand description

Whether point (world space) falls inside t’s drawn shape, widened by tolerance world units. The shape maths must match what the renderer draws, or the clickable area disagrees with the visible one.