Skip to content

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)

Parameters

Parameter Default Value Note
point
p1
p2
p3

Return value

Condition Return Value
(always) number

Notes

Example

hit = raylib.CheckCollisionPointTriangle([200, 150], [150, 100], [250, 100], [200, 200])
if hit then print "Point is inside the triangle!"

Clone this wiki locally