void BoundingBox::computeAxisAlignedBox(std::vector<Vertex>& vertices) { type = "Axis Aligned"; min.setZero(); max.setZero(); for (VertexIter v = vertices.begin(); v != vertices.end(); v++) { expandToInclude(v->position); } }
/*public*/ void Envelope::expandToInclude(const Coordinate& p) { expandToInclude(p.x, p.y); }
void AABB::expandToInclude( const AABB& aabb ) { expandToInclude( aabb.Min ); expandToInclude( aabb.Max ); }