Check if point is within a polygon described by array of vertices NOTE: Based on http://jeffreythompson.org/collision-detection/poly-point.php
poly = [[100,50], [200,50], [250,150], [150,200], [50,150]] hit = raylib.CheckCollisionPointPoly([150, 120], poly) if hit then print "Point is inside the polygon!"
There was an error while loading. Please reload this page.