sectorContainsSector function

dynamic sectorContainsSector(
  1. dynamic m,
  2. dynamic p
)

Implementation

sectorContainsSector(m, p) {
  return area(m.prev, m, p.prev) < 0 && area(p.next, m, m.next) < 0;
}