CheckCollisionPointLine method

bool CheckCollisionPointLine(
  1. Vector2D point,
  2. Vector2D p1,
  3. Vector2D p2,
  4. num threshold,
)

Implementation

bool CheckCollisionPointLine(
  Vector2D point,
  Vector2D p1,
  Vector2D p2,
  num threshold,
) => run(
  () => 'CheckCollisionPointLine($point, $p1, $p2, $threshold)',
  () => rl.Core.CheckCollisionPointLine(
    rl.Temp.Vector2$.Ref1(point).ref,
    rl.Temp.Vector2$.Ref2(p1).ref,
    rl.Temp.Vector2$.Ref3(p2).ref,
    threshold.toInt(),
  ),
);