Expand description
geo2d,2D几何类型,geo-types
- 基本形状:点,线段,多边形
- github: https://github.com/georust/geo
- 重点是:带孔多边形的描述 boolean:多边形的布尔运算:&,|,^
- github: https://github.com/21re/rust-geo-booleanop
Modules§
Structs§
- Line
Iterator - Line
String - 首尾相连的点集: p1, p2, …, pn 有三个遍历方法:
- Point
Iterator - Polygon
- 多边形:一堆线段组成的区域
- Polygon
Iter - Rectangle
- An Axis Aligned Bounding Box.
- TriIterator
Enums§
Functions§
- cross
- include_
quad2 - 检查点是否在四边形范围内, 要求p1 p2 p3 p4 要么顺时针要么逆时针
- include_
tri2 - 检查点是否在三角形范围内, 要求p1 p2 p3 要么顺时针要么逆时针