Anonymous
public text v1 · immutablevoid GetInterval(const Vector *axVertices, int iNumVertices, const Vector& xAxis, float& min, float& max)
{
min = max = (axVertices[0] * xAxis);
for(int i = 1; i < iNumVertices; i ++)
{
float d = (axVertices[i] * xAxis);
if (d < min) min = d; else if (d > max) max = d;
}
}