PolygonsHelper
概要
PolygonsHelper は Aspose.PDF の FOSS における .NET 用のクラスです。
ポリゴンと矩形のジオメトリユーティリティ — 点/ポリゴンの包含、セグメントのヒットテスト、矩形/ポリゴンの分類。
このクラスは、.NET プログラムにおける PolygonsHelper オブジェクトの操作のための 9 つのメソッドを提供します。利用可能なメソッドは、GetRectanglePositionRelativePolygon、IsIntersectLine、IsPointInsidePolygon、IsPointInsideRectangle、IsPointOnLineSegment、IsPolygonInsidePolygon、IsPolygonInsideRectangle です。すべての公開メンバーは、Aspose.PDF の .NET 用 FOSS パッケージをインストールした後、任意の .NET アプリケーションからアクセス可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
GetRectanglePositionRelativePolygon(rect: Rectangle, polygon: Point[]) | rect の位置を polygon に対して分類します。 |
IsPolygonInsidePolygon(outer: Point[], inner: Point[]) | inner のすべての頂点が outer ポリゴンの内部に厳密に入っている場合に true を返します。 |
IsPolygonInsidePolygon(outer: Point[], inner: Point[], includeBoundary: bool) | inner のすべての頂点が outer ポリゴンの内部に入っている場合に true を返します。 |
IsPointInsidePolygon(polygon: Point[], point: Point) | point がポリゴンの内部に厳密に入っている(境界は除く)場合に true を返します。 |
IsPointInsidePolygon(polygon: Point[], point: Point, includeBoundary: bool) | 点が多角形の内部にある場合に true を返します。 |
IsPointOnLineSegment(a: Point, b: Point, p: Point) | 点 p が a から b への線分上にある場合に true を返します。 |
IsIntersectLine(y: double, polygon: Point[]) | 水平線 y = y が多角形の任意の辺と交差する場合に true を返します。 |
IsPolygonInsideRectangle(polygon: Point[], rect: Rectangle, includeBoundary: bool) | 多角形のすべての頂点が rect の内部にある場合に true を返します。 |
IsPointInsideRectangle(px: double, py: double, width: double, height: double, includeBoundary: bool) | 点 (px, py) が軸に平行な矩形 [0..width] × [0..height] の内部にある場合に true を返します。 |