project2D/CollisionManager.cpp
//--------------------------------------------------------------------------------------
// MaxV: Checks the maximum of 2 values in a dynamic array
//
// Param:
//		vector: take in a Dynamic array of floats
//
// Returns:
//		float: Returns a float for the maximum value.
//--------------------------------------------------------------------------------------
Checks the maximum of 2 values in a dynamic array
Param:
vector: take in a Dynamic array of floats

Returns a float for the maximum value.
Checks the maximum of 2 values in a dynamic array Param : vector : take in a Dynamic array of floats Returns a float for the maximum value .
float MaxV(vector<float> x)
{
	float retVal = x[0];
	for (int i = 1; i < x.size(); i++)
	{
		if (x[i] > retVal)
		{
			retVal = x[i];
		}
	}
	return retVal;
}
float MaxV ( vector < float > x ) { float retVal = x [ 0 ] ; for ( int i = 1 ; i < x . size ( ) ; i ++ ) { if ( x [ i ] > retVal ) { retVal = x [ i ] ; } } return retVal ; }
MaxV: Checks the maximum of 2 values in a dynamic array
Param:
vector: take in a Dynamic array of floats
MaxV : Checks the maximum of 2 values in a dynamic array Param : vector : take in a Dynamic array of floats