Table of Contents

Method IsOverlap

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll

IsOverlap(Polygon2D, Polygon2D)

Tests whether two polygons overlap.

public static bool IsOverlap(Polygon2D polygon0, Polygon2D polygon1)

Parameters

polygon0 Polygon2D

The first polygon.

polygon1 Polygon2D

The second polygon.

Returns

bool

true when the polygons overlap or touch; otherwise, false.

Remarks

Overlap is detected by checking whether either polygon contains a vertex of the other, then by testing every edge pair for segment intersection.