This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* C99, public domain licensed */ | |
#include <limits.h> | |
#include <stdbool.h> | |
#include <math.h> | |
/* utilities */ | |
#define SWAP(type, a, b) do { \ | |
type sw_ap; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open chrome devtools and paste this code, and run it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
整理一下工作学习中用到的计算几何算法,大多使用JavaScript实现。 |