calculate method
Implementation
SegmentList calculate({bool inverted = false}) {
if (!selfIntersection) {
throw new Exception(
"This function is only intended to be called when selfIntersection = true");
}
return calculate_INTERNAL(inverted, false);
}