isInHalfPlane static method
Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant).
Implementation
static bool isInHalfPlane(int quad, int halfPlane) {
if (halfPlane == SE) {
return quad == SE || quad == SW;
}
return quad == halfPlane || quad == halfPlane + 1;
}