hasIntersection

fun hasIntersection(pointsA: List<Point>, pointsB: List<Point>): Boolean

Tests whether two convex polygons overlap using the Separating Axis Theorem (SAT).

Used during depth sorting to determine which face pairs need explicit ordering.

Return

true if the polygons overlap.

Parameters

pointsA

Vertices of the first polygon (projected 2D points).

pointsB

Vertices of the second polygon (projected 2D points).