operator - method

RectRange<num> operator -(
  1. RectRange<num>? other
)

Subtract other.

otherを減算します。

Implementation

RectRange operator -(RectRange? other) {
  if (other == null) {
    return this;
  }
  return RectRange(
    minX: minX - other.minX,
    maxX: maxX - other.maxX,
    minY: minY - other.minY,
    maxY: maxY - other.maxY,
  );
}