Ejemplo n.º 1
0
        void extendBy(const box3<Type>& bb)
        {
            if (bb.isEmpty())
                return;

            if (box3<Type>::isEmpty()) {
                *this = bb;
                m_matrix.makeIdentity();
                m_invertedMatrix.makeIdentity();
                return;
            }
        }
Ejemplo n.º 2
0
void
plane::
extendBy ( const box3& box )
{
	if ( !box.isEmpty() )
	{
		vec3 a ( math::vec3::NoInit );
		vec3 b ( math::vec3::NoInit );
		box.get ( a, b );
		extendBy ( a );
		extendBy ( b );
	}
}
Ejemplo n.º 3
0
void
sphere::
extendBy ( const box3& box )
{
	PNIMATHUNTESTED;

	if ( !box.isEmpty() )
	{
		sphere tmpsphere;
		tmpsphere.extendBy ( box.minPos );
		tmpsphere.extendBy ( box.maxPos );
		
		extendBy ( tmpsphere );
	}
}