Commit 5b319125 authored by David Bommes's avatar David Bommes
Browse files

fixed type mismatch

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7028 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b44e12b8
......@@ -889,15 +889,15 @@ perpendicular( const VectorT<Scalar,3>& v )
if (fabs(v[0]) < fabs(v[1]))
{
if (fabs(v[0]) < fabs(v[2]))
return Vec3f(1.0f - v[0]*v[0], -v[0]*v[1], -v[0]*v[2]).normalize();
return VectorT<Scalar,3>( Scalar(1.0) - v[0]*v[0], -v[0]*v[1], -v[0]*v[2]).normalize();
}
else
{
if (fabs(v[1]) < fabs(v[2]))
return Vec3f(-v[1]*v[0], 1.0f - v[1]*v[1], -v[1]*v[2]).normalize();
return VectorT<Scalar,3>(-v[1]*v[0], Scalar(1.0) - v[1]*v[1], -v[1]*v[2]).normalize();
}
return Vec3f(-v[2]*v[0], -v[2]*v[1], 1.0f - v[2]*v[2]).normalize();
return VectorT<Scalar,3>(-v[2]*v[0], -v[2]*v[1], Scalar(1.0) - v[2]*v[2]).normalize();
}
......
Markdown is supported
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