This seems like a simple question, but i'm having trouble searching the internet for it.
In XNA, during a collision detecting method, I would determin the minimum of some vectors.
// Get the minimum top point Vector2 minTopPoint1 = Vector2.Min(topLeft1, topRight1); // Get the minimum bottom point Vector2 minBottomPoint1 = Vector2.Min(bottomLeft1, bottomRight1); // Get the minimum of both the top and bottom points. Vector2 minPoint1 = Vector2.Min(minTopPoint1, minBottomPoint1);
I switched over to making a C++ engine, and am trying to replicate the collision formula (Honestly, it's confusing enough, I just need to replicate it from XNA) I made my own Vector2, and now I need to make this Min function.
So, what is the minimum or maximum of two vectors? Is it just the magnitude of the two vectors measured against eatchother? Is it the x and y values min/maxed somehow?