/** * Utility method to grow an AABB without creating a new AABB or touching * the pool, so we can re-use ones we have. * * @param target * @param source * @param x * @param y * @param z */ public static void growBB(AxisAlignedBB target, AxisAlignedBB source, int x, int y, int z) { target.a = source.a - x; target.b = source.b - y; target.c = source.c - z; target.d = source.d + x; target.e = source.e + y; target.f = source.f + z; }