operator - method
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,
);
}