PatchworkOS
Loading...
Searching...
No Matches
polygon.h File Reference
#include "cmd.h"
#include "font.h"
#include "pixel.h"
#include "rect.h"
#include "surface.h"
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct image image_t
 

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.
 

Typedef Documentation

◆ image_t

typedef struct image image_t

Definition at line 17 of file polygon.h.