CheckCollisionPointLine method

bool CheckCollisionPointLine(
  1. Vector2C point,
  2. Vector2C p1,
  3. Vector2C 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(Vector2C point, Vector2C p1, Vector2C p2, int threshold)
  => _CheckCollisionPointLine(point, p1, p2, threshold);