PolygonsHelper
ภาพรวม
PolygonsHelper เป็นคลาสใน Aspose.PDF FOSS สําหรับ .NET.
หน่วยงานการใช้งานทางภูมิปริมณฑ์หลายเหลี่ยมและสี่เหมาะ การกักกันจุด/พอลิกอน, การทดสอบความสําเร็จของส่วน และการจัดประเภทแบบสั้น / พูลิก้อน.
หมวดนี้ให้ 9 วิธีในการทํางานกับวัตถุ PolygonsHelper ในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: GetRectanglePositionRelativePolygon, IsIntersectLine, IsPointInsidePolygon, IsPointInsideRectangle, IsPointOnLineSegment, IsPolygonInsidePolygon, IsPolygonInsideRectangle. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS for .Net.
วิธีการ
| Signature | คําอธิบาย |
|---|---|
GetRectanglePositionRelativePolygon(rect: Rectangle, polygon: Point[]) | ประเภทตําแหน่งของเส้นตรงเทียบกับพอลิกอน. |
IsPolygonInsidePolygon(outer: Point[], inner: Point[]) | กลับ true เมื่อทุกจุดสูงของด้านใน อยู่ภายในแบบขนานข้างนอกอย่างแน่นคับ. |
IsPolygonInsidePolygon(outer: Point[], inner: Point[], includeBoundary: bool) | กลับ true เมื่อทุกจุดสูงของด้านในอยู่ในส่วนนอกของพอลิกอน. |
IsPointInsidePolygon(polygon: Point[], point: Point) | กลับ true เมื่อจุดอยู่ในก้อนหลายเหลี่ยม (ไม่รวมขอบ). |
IsPointInsidePolygon(polygon: Point[], point: Point, includeBoundary: bool) | กลับ true เมื่อจุดอยู่ในพอลิกอน. |
IsPointOnLineSegment(a: Point, b: Point, p: Point) | กลับ true เมื่อจุด p อยู่บนช่วงจาก a ถึง b. |
IsIntersectLine(y: double, polygon: Point[]) | กลับ true เมื่อเส้นแนวราบ y = y ตัดขอบของพอลิกอนใด ๆ. |
IsPolygonInsideRectangle(polygon: Point[], rect: Rectangle, includeBoundary: bool) | กลับ true เมื่อทุกจุดสูงของพอลิกอนอยู่ในขอบตรง. |
IsPointInsideRectangle(px: double, py: double, width: double, height: double, includeBoundary: bool) | กลับ true เมื่อจุด (px, py) อยู่ภายในสี่เหลี่ยมที่ตรงกับแกน [0..breadth] × [ 0..height ]. |