public void Reduce(BRectInt source) { if (xMin < source.xMin) { xMin = source.xMin; } if (xMax > source.xMax) { xMax = source.xMax; } if (yMax > source.yMax) { yMax = source.yMax; } if (yMin < source.yMin) { yMin = source.yMin; } }
public void Extend(BRectInt source) { if (xMin > source.xMin) { xMin = source.xMin; } if (xMax < source.xMax) { xMax = source.xMax; } if (yMax < source.yMax) { yMax = source.yMax; } if (yMin > source.yMin) { yMin = source.yMin; } }