Skip to content

cf_norms

Category: collision
GitHub: cute_math.h


Computes the normals for a polygon.

void cf_norms(CF_V2* verts, CF_V2* norms, int count);
Parameters Description
verts The vertices of the polygon.
norms The normals of the polygon (these are written to as output).
count The number of vertices in verts.

Return Value

Writes the calculated normals to norms.

CF_Poly