Crate pi_cg2d

Source
Expand description

geo2d,2D几何类型,geo-types

  • 基本形状:点,线段,多边形
  • github: https://github.com/georust/geo
  • 重点是:带孔多边形的描述 boolean:多边形的布尔运算:&,|,^
  • github: https://github.com/21re/rust-geo-booleanop

Modules§

splay

Structs§

LineIterator
LineString
首尾相连的点集: p1, p2, …, pn 有三个遍历方法:
PointIterator
Polygon
多边形:一堆线段组成的区域
PolygonIter
Rectangle
An Axis Aligned Bounding Box.
TriIterator

Enums§

BooleanOperation
InnOuter

Functions§

cross
include_quad2
检查点是否在四边形范围内, 要求p1 p2 p3 p4 要么顺时针要么逆时针
include_tri2
检查点是否在三角形范围内, 要求p1 p2 p3 要么顺时针要么逆时针