Skip to contents

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

Usage

check_collision_point_line(point, p_1, p_2, 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.

Value

A logical

Note

This function has been auto-generated from the following Raylib function definition:

bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold);