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);
    }
}
예제 #2
0
/*public*/
void
Envelope::expandToInclude(const Coordinate& p)
{
	expandToInclude(p.x, p.y);
}
예제 #3
0
파일: AABB.cpp 프로젝트: DrakonPL/VitaJelly
	void AABB::expandToInclude( const AABB& aabb )
	{
		expandToInclude( aabb.Min );
		expandToInclude( aabb.Max );
	}