/** * Recompute world space bounding box of this instance. */ public void updateBounds() { bounds = geometry.getWorldBounds(o2w.getData(0)); for (int i = 1; i < o2w.numSegments(); i++) { bounds.include(geometry.getWorldBounds(o2w.getData(i))); } }
/** * Recompute world space bounding box of this instance. */ public void updateBounds() { bounds = geometry.getWorldBounds(o2w); }