g/apache/commons/math3/geometry/partitioning/RegionFactory.html" title="type parameter in RegionFactory">S</a>&gt;&nbsp;region2)</pre>
<div class="block">Compute the difference of two regions.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>region1</code> - first region (will be unusable after the operation as
 parts of it will be reused in the new region)</dd><dd><code>region2</code> - second region (will be unusable after the operation as
 parts of it will be reused in the new region)<