CheckCollisionPointLine abstract method

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