Function check_collision_point_line

Source
pub fn check_collision_point_line(
    point: Vector2,
    p1: Vector2,
    p2: Vector2,
    threshold: u32,
) -> bool
Expand description

Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]