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, p1, p2, threshold)

Arguments

point

A numeric vector of length 2.

p1

A numeric vector of length 2.

p2

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);

Examples

check_collision_point_line(c(100, 100), c(100, 100), c(100, 100), 0L)
#> [1] FALSE