Commit f6e2f7e3 authored by Will Schroeder's avatar Will Schroeder
Browse files

*** empty log message ***

parent 2d7d566d
......@@ -69,9 +69,9 @@ int vlQuad::EvaluatePosition(float x[3], float closestPoint[3],
//
for (maxComponent=0.0, i=0; i<3; i++)
{
if (n[i] > maxComponent)
if (fabs(n[i]) > maxComponent)
{
maxComponent = n[i];
maxComponent = fabs(n[i]);
idx = i;
}
}
......
......@@ -57,9 +57,9 @@ int vlTriangle::EvaluatePosition(float x[3], float closestPoint[3],
//
for (maxComponent=0.0, i=0; i<3; i++)
{
if (n[i] > maxComponent)
if (fabs(n[i]) > maxComponent)
{
maxComponent = n[i];
maxComponent = fabs(n[i]);
idx = i;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment