MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / polar_angle

Function polar_angle

contents/graham_scan/code/c/graham.c:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28double polar_angle(struct point origin, struct point p) {
29 return atan2(p.y - origin.y, p.x - origin.x);
30}
31
32void polar_angles_sort(struct point *points, struct point origin, size_t size) {
33 if (size < 2) {

Callers 1

polar_angles_sortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected