/// Transforms the OBB using the given transform void AABB::transform(const Transform3d& T, BV* result) const { // get the AABB AABB& aabb = *((AABB*) result); // copy this aabb = *this; // get the OBB version of this transformed OBB o; get_OBB().transform(T, &o); // now setup the AABB boundary points aabb.minp = o.get_lower_bounds(); aabb.maxp = o.get_lower_bounds(); }