overlaps method

  1. @override
bool overlaps(
  1. DFShape other
)
override

是否重叠

Implementation

@override
bool overlaps(DFShape other) {
  if (other is DFRect) {
    return circleToRect(other);
  } else if (other is DFCircle) {
    return circleToCircle(other);
  }
  return false;
}