All pastes #183267 Raw Edit

Anonymous

public text v1 · immutable
#183267 ·published 2006-09-26 19:17 UTC
rendered paste body
void 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;
	}
}