public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(1.5f); if (o2w != null) bounds = o2w.transform(bounds); return bounds; }
public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(minX, minY, minZ); bounds.include(maxX, maxY, maxZ); if (o2w == null) return bounds; return o2w.transform(bounds); }
public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(-ro - ri, -ro - ri, -ri); bounds.include(ro + ri, ro + ri, ri); if (o2w != null) bounds = o2w.transform(bounds); return bounds; }
public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(); for (int i = 0, i3 = 0; i < n; i++, i3 += 3) bounds.include(particles[i3], particles[i3 + 1], particles[i3 + 2]); bounds.include(bounds.getMinimum().x - r, bounds.getMinimum().y - r, bounds.getMinimum().z - r); bounds.include(bounds.getMaximum().x + r, bounds.getMaximum().y + r, bounds.getMaximum().z + r); return o2w == null ? bounds : o2w.transform(bounds); }
public BoundingBox getWorldBounds(Matrix4 o2w) { if (o2w == null) return bounds; return o2w.transform(bounds); }
public BoundingBox GetWorldBounds(Matrix4 o2w) { if (o2w == null) return bb; return o2w.transform(bb); }
public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(getPrimitiveBound(0, 1)); if (o2w != null) bounds = o2w.transform(bounds); return bounds; }
public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(); for (int i = 0, j = 0; i < points.Length; i += 3, j++) { float w = 0.5f * getWidth(j); bounds.include(points[i] - w, points[i + 1] - w, points[i + 2] - w); bounds.include(points[i] + w, points[i + 1] + w, points[i + 2] + w); } if (o2w != null) bounds = o2w.transform(bounds); return bounds; }