Skip to content

Instantly share code, notes, and snippets.

@kikitte
kikitte / fill_poly_v2i_n.c
Created May 24, 2022 01:19 — forked from ideasman42/fill_poly_v2i_n.c
Raster poly-filling by Darel Rex Finley, optimized by Campbell Barton.
/* C99, public domain licensed */
#include <limits.h>
#include <stdbool.h>
#include <math.h>
/* utilities */
#define SWAP(type, a, b) do { \
type sw_ap; \
@kikitte
kikitte / gist:5b50c13afb55286791f4d5d62e9a2ed9
Created May 16, 2021 08:04
Flow / Unfloaw all people on github page
Open chrome devtools and paste this code, and run it.
@kikitte
kikitte / gist:c07fd49b3f1a2cdd173d1cd83c8f856e
Last active July 27, 2023 14:35
常用计算几何算法
整理一下工作学习中用到的计算几何算法,大多使用JavaScript实现。