Check if point belongs to line created between two points p1 and p2 with defined margin in pixels threshold.
Arguments
- point
A numeric vector of length 2.
- p_1
A numeric vector of length 2.
- p_2
A numeric vector of length 2.
- threshold
An integer.
Note
This function has been auto-generated from the following Raylib function definition:
CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); bool
See also
Other collision functions:
check_collision_box_sphere()
,
check_collision_boxes()
,
check_collision_circle_rec()
,
check_collision_circles()
,
check_collision_lines()
,
check_collision_point_circle()
,
check_collision_point_rec()
,
check_collision_point_triangle()
,
check_collision_recs()
,
check_collision_spheres()
,
get_collision_rec()
,
get_ray_collision_box()
,
get_ray_collision_mesh()
,
get_ray_collision_model()
,
get_ray_collision_quad()
,
get_ray_collision_sphere()
,
get_ray_collision_triangle()
Other line functions:
draw_line_3d()
,
draw_line_bezier_cubic()
,
draw_line_bezier_quad()
,
draw_line_bezier()
,
draw_line_ex()
,
draw_line_v()
,
draw_line()
,
image_draw_line_v()
,
image_draw_line()