Commit b797c734 authored by Mike Kremer's avatar Mike Kremer
Browse files

Don't execute normalize() on const vector reference.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13035 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 48abaa0e
......@@ -808,9 +808,13 @@ rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
VectorT<Scalar,3>& _axis,
Scalar& _angle ) {
// Copy axes
VectorT<Scalar,3> v0 = _v0;
VectorT<Scalar,3> v1 = _v1;
// Normalize axes
VectorT<Scalar,3> v0 = _v0.normalize();
VectorT<Scalar,3> v1 = _v1.normalize();
v0.normalize();
v1.normalize();
// Get rotation axis
_axis = (v0 % v1).normalize();
......
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