This file contains hidden or 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
#pragma once | |
#include <type_traits> | |
#define GLM_FORCE_XYZW_ONLY | |
#include <glm/vec2.hpp> | |
#include <glm/vec3.hpp> | |
#include <boost/geometry/core/cs.hpp> | |
#include <boost/geometry/geometries/point.hpp> |
This file contains hidden or 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
@echo off | |
SET OSGEO4W_ROOT=C:\Program Files\QGIS 3.40.4 | |
call "%~dp0\o4w_env.bat" | |
@echo off | |
path %OSGEO4W_ROOT%\apps\qgis-ltr\bin;%PATH% | |
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis-ltr | |
set GDAL_FILENAME_IS_UTF8=YES | |
rem Set VSI cache to be used as buffer, see #6448 | |
set VSI_CACHE=TRUE | |
set VSI_CACHE_SIZE=1000000 |
This file contains hidden or 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 hidden or 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 hidden or 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实现。 |