-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.CheckCollisionPointTriangle
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if point is inside a triangle defined by three points (p1, p2, p3)
| Parameter | Default Value | Note |
|---|---|---|
| point | ||
| p1 | ||
| p2 | ||
| p3 |
| Condition | Return Value |
|---|---|
| (always) | number |
hit = raylib.CheckCollisionPointTriangle([200, 150], [150, 100], [250, 100], [200, 200])
if hit then print "Point is inside the triangle!"