Exemplo n.º 1
0
/*     */   public void getBroadphaseAabb(Vector3f aabbMin, Vector3f aabbMax) {
/* 265 */     DbvtAabbMm bounds = new DbvtAabbMm();
/* 266 */     if (!this.sets[0].empty()) {
/* 267 */       if (!this.sets[1].empty()) {
/* 268 */         DbvtAabbMm.Merge(this.sets[0].root.volume, this.sets[1].root.volume, bounds);
/*     */       }
/*     */       else {
/* 271 */         bounds.set(this.sets[0].root.volume);
/*     */       }
/*     */     }
/* 274 */     else if (!this.sets[1].empty()) {
/* 275 */       bounds.set(this.sets[1].root.volume);
/*     */     }
/*     */     else {
/* 278 */       DbvtAabbMm.FromCR(new Vector3f(0.0F, 0.0F, 0.0F), 0.0F, bounds);
/*     */     }
/* 280 */     aabbMin.set(bounds.Mins());
/* 281 */     aabbMax.set(bounds.Maxs());
/*     */   }