private void increaseMaxInnerBounds(Object bounds, Object add) { SpatialKey b = (SpatialKey) bounds; SpatialKey a = (SpatialKey) add; for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.max(i))); b.setMax(i, Math.max(b.max(i), a.min(i))); } }
/** * Increase the bounds in the given spatial object. * * @param bounds the bounds (may be modified) * @param add the value */ public void increaseBounds(Object bounds, Object add) { SpatialKey a = (SpatialKey) add; SpatialKey b = (SpatialKey) bounds; if (a.isNull() || b.isNull()) { return; } for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.min(i))); b.setMax(i, Math.max(b.max(i), a.max(i))); } }
float t = boundsInner.min(i); boundsInner.setMin(i, boundsInner.max(i)); boundsInner.setMax(i, t);
private void increaseMaxInnerBounds(Object bounds, Object add) { SpatialKey b = (SpatialKey) bounds; SpatialKey a = (SpatialKey) add; for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.max(i))); b.setMax(i, Math.max(b.max(i), a.min(i))); } }
private void increaseMaxInnerBounds(Object bounds, Object add) { SpatialKey b = (SpatialKey) bounds; SpatialKey a = (SpatialKey) add; for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.max(i))); b.setMax(i, Math.max(b.max(i), a.min(i))); } }
private void increaseMaxInnerBounds(Object bounds, Object add) { SpatialKey b = (SpatialKey) bounds; SpatialKey a = (SpatialKey) add; for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.max(i))); b.setMax(i, Math.max(b.max(i), a.min(i))); } }
/** * Increase the bounds in the given spatial object. * * @param bounds the bounds (may be modified) * @param add the value */ public void increaseBounds(Object bounds, Object add) { SpatialKey a = (SpatialKey) add; SpatialKey b = (SpatialKey) bounds; if (a.isNull() || b.isNull()) { return; } for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.min(i))); b.setMax(i, Math.max(b.max(i), a.max(i))); } }
/** * Increase the bounds in the given spatial object. * * @param bounds the bounds (may be modified) * @param add the value */ public void increaseBounds(Object bounds, Object add) { SpatialKey a = (SpatialKey) add; SpatialKey b = (SpatialKey) bounds; if (a.isNull() || b.isNull()) { return; } for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.min(i))); b.setMax(i, Math.max(b.max(i), a.max(i))); } }
/** * Increase the bounds in the given spatial object. * * @param bounds the bounds (may be modified) * @param add the value */ public void increaseBounds(Object bounds, Object add) { SpatialKey a = (SpatialKey) add; SpatialKey b = (SpatialKey) bounds; if (a.isNull() || b.isNull()) { return; } for (int i = 0; i < dimensions; i++) { b.setMin(i, Math.min(b.min(i), a.min(i))); b.setMax(i, Math.max(b.max(i), a.max(i))); } }
float t = boundsInner.min(i); boundsInner.setMin(i, boundsInner.max(i)); boundsInner.setMax(i, t);
float t = boundsInner.min(i); boundsInner.setMin(i, boundsInner.max(i)); boundsInner.setMax(i, t);
float t = boundsInner.min(i); boundsInner.setMin(i, boundsInner.max(i)); boundsInner.setMax(i, t);