CheckCollisionPointLine method
Check if point belongs to line created between two points p1 and p2 with defined margin in pixels threshold
Implementation
@override
bool CheckCollisionPointLine(
Vector2 point,
Vector2 p1,
Vector2 p2,
int threshold,
) => _ffi.CheckCollisionPointLine(
Vector2$.Ref1(point).asNativePointer<Vector2C>().ref,
Vector2$.Ref2(p1).asNativePointer<Vector2C>().ref,
Vector2$.Ref3(p2).asNativePointer<Vector2C>().ref,
threshold,
);