@kcuf/geometry-basic
v0.2.0
Published
Some basic geometry utility functions.
Downloads
879
Readme
@/pkg/helper-geometry
几何算法辅助
参考:
| lib | npm | git | 说明 | | --- | --- | --- | --- | | @turf/turf | npm | git | A modular geospatial engine written in JavaScript | | @mathigon/euclid | npm | git | A Typescript library for 2D geometry | | 2d-geometry | npm | git | A fork of flatten-js focused on performance, ergonomics and Typescript | | flatten-js | npm | git | A Javascript library for 2d geometry | | @markroland/path-helper | npm | git | A variety of methods to assist with performing operations on multi-point paths (polylines) |
各模块说明
src/helper
下各模块作用及依赖关系,需避免循环依赖
| 模块 | 作用 | 依赖 |
| --- | --- | --- |
| measurement
| 长度、面积、中心、边缘等 | - |
| comparison
| 比较、是否等效 | measurement
|
| mutation
| 修改传入数据 | comparison
|
| relation
| 投影、相交、平行、共线等关系 | measurement
、comparison
|