checkBothIntersections method

EventNode checkBothIntersections(
  1. EventNode ev,
  2. EventNode above,
  3. EventNode below
)

Implementation

EventNode checkBothIntersections(
    EventNode ev, EventNode above, EventNode below) {
  if (above != null) {
    var eve = checkIntersection(ev, above);
    if (eve != null) return eve;
  }

  if (below != null) {
    return checkIntersection(ev, below);
  }

  return null;
}