PolygonsHelper

PolygonsHelper

개요

PolygonsHelper은 Aspose.PDF FOSS에서 .NET용 클래스입니다.

다각형 및 사각형 기하학 유틸리티 — 점/다각형 포함, 선분 히트 테스트 및 사각형/다각형 분류.

이 클래스는 .NET 프로그램에서 PolygonsHelper 객체를 다루기 위한 9개의 메서드를 제공합니다. 사용 가능한 메서드에는 GetRectanglePositionRelativePolygon, IsIntersectLine, IsPointInsidePolygon, IsPointInsideRectangle, IsPointOnLineSegment, IsPolygonInsidePolygon, IsPolygonInsideRectangle이 포함됩니다. Aspose.PDF FOSS for .NET 패키지를 설치하면 모든 .NET 애플리케이션에서 public 멤버에 접근할 수 있습니다.

메서드

시그니처설명
GetRectanglePositionRelativePolygon(rect: Rectangle, polygon: Point[])rect가 polygon에 대해 어떤 위치에 있는지 분류합니다.
IsPolygonInsidePolygon(outer: Point[], inner: Point[])inner의 모든 정점이 polygon outer 내부에 엄격히 포함될 때 true를 반환합니다.
IsPolygonInsidePolygon(outer: Point[], inner: Point[], includeBoundary: bool)inner의 모든 정점이 polygon outer 내부에 있을 때 true를 반환합니다.
IsPointInsidePolygon(polygon: Point[], point: Point)point가 polygon 내부에 엄격히 포함될 때 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를 반환합니다.

참조

 한국어