Handbook
Glossary
check-collision-point-line ( point p1 p2 threshold -- bool )
Vocabulary
raylib
Inputs
point
a
Vector2
p1
a
Vector2
p2
a
Vector2
threshold
an
int
Outputs
bool
a
bool
Word description
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
Definition
USING:
alien.c-types
alien.syntax
;
IN:
raylib
LIBRARY:
raylib
FUNCTION-ALIAS:
check-collision-point-line
bool CheckCollisionPointLine
(
Vector2
point,
Vector2
p1,
Vector2
p2,
int
threshold )