platform/platform_math.c
/*	Check to see if an area is intersecting another area.
*/
Check to see if an area is intersecting another area.
Check to see if an area is intersecting another area .
bool Math_IsIntersecting(
	MathVector3f_t mvFirstMins, MathVector3f_t mvFirstMaxs,
	MathVector3f_t mvSecondMins, MathVector3f_t mvSecondMaxs)
{
	if (mvFirstMins[0] > mvSecondMaxs[0] ||
		mvFirstMins[1] > mvSecondMaxs[1] ||
		mvFirstMins[2] > mvSecondMaxs[2] ||
		mvFirstMaxs[0] < mvSecondMins[0] ||
		mvFirstMaxs[1] < mvSecondMins[1] ||
		mvFirstMaxs[2] < mvSecondMins[2])
		return false;
	return true;
}
bool Math_IsIntersecting ( MathVector3f_t mvFirstMins , MathVector3f_t mvFirstMaxs , MathVector3f_t mvSecondMins , MathVector3f_t mvSecondMaxs ) { if ( mvFirstMins [ 0 ] > mvSecondMaxs [ 0 ] || mvFirstMins [ 1 ] > mvSecondMaxs [ 1 ] || mvFirstMins [ 2 ] > mvSecondMaxs [ 2 ] || mvFirstMaxs [ 0 ] < mvSecondMins [ 0 ] || mvFirstMaxs [ 1 ] < mvSecondMins [ 1 ] || mvFirstMaxs [ 2 ] < mvSecondMins [ 2 ] ) return false ; return true ; }
Check to see if an area is intersecting another area.
Check to see if an area is intersecting another area .