PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
polygon.c File Reference
#include <libpatchwork/polygon.h>
#include <math.h>
Include dependency graph for polygon.c:

Go to the source code of this file.

Functions

void polygon_rotate (point_t *points, uint64_t pointCount, double angle, point_t center)
 Rotate a polygon around a center point.
 
bool polygon_contains (double px, double py, const point_t *points, uint64_t pointCount)
 Check if a point is inside a polygon.