checkCollisionPointLine function

bool checkCollisionPointLine(
  1. Vector2 point,
  2. Vector2 p1,
  3. Vector2 p2,
  4. int threshold,
)

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