PolygonsHelper
Overview
PolygonsHelper 是一个类在Aspose.PDF FOSS的.NET中.
多角和矩形几何工具 点/多角封闭,段击测试和直角/半角分类.
本类提供了在NET程序中与PolygonsHelper对象工作的9种方法. 有的方法包括: GetRectanglePositionRelativePolygon, IsIntersectLine, IsPointInsidePolygon, IsPointInsideRectangle, IsPointOnLineSegment, IsPolygonInsidePolygon, IsPolygonInsideRectangle. 所有公众成员在安装了Aspose.PDF FOSS for .NET 包后,可以访问任何.NET应用程序.
Methods
| Signature | Description |
|---|---|
GetRectanglePositionRelativePolygon(rect: Rectangle, polygon: Point[]) | 关于多边形的直线位置. |
IsPolygonInsidePolygon(outer: Point[], inner: Point[]) | 当内方的每个顶点都在多边形外面时返回true. |
IsPolygonInsidePolygon(outer: Point[], inner: Point[], includeBoundary: bool) | 当内方的每个顶点位于多边形外面时返回true. |
IsPointInsidePolygon(polygon: Point[], point: Point) | 当点在多角形内 (不包括边界) 时返回真. |
IsPointInsidePolygon(polygon: Point[], point: Point, includeBoundary: bool) | 当点在多边形内时返回true. |
IsPointOnLineSegment(a: Point, b: Point, p: Point) | 当点p位于从a到b的段时返回真. |
IsIntersectLine(y: double, polygon: Point[]) | 当y=y的水平线切断多角形的任何边时返回真. |
IsPolygonInsideRectangle(polygon: Point[], rect: Rectangle, includeBoundary: bool) | 当多角形的每个顶点都在直内时返回true. |
IsPointInsideRectangle(px: double, py: double, width: double, height: double, includeBoundary: bool) | 当点 (px,py) 位于轴对齐矩形 [0.宽] × [ 0.高 ] 内时返回真. |