checkCollisionPointLine function
Check if point belongs to line created between two points p1
and p2
with defined margin in pixels threshold
.
Implementation
bool checkCollisionPointLine(
Vector2 point,
Vector2 p1,
Vector2 p2,
int threshold,
) {
return library.CheckCollisionPointLine(point.ref, p1.ref, p2.ref, threshold);
}