Commit 99ab2623 authored by Mike Kremer's avatar Mike Kremer
Browse files

Changed signature of rotationOfTowVectors function to just define the scalar...

Changed signature of rotationOfTowVectors function to just define the scalar type since we have to assume R^3 as underlying vector space.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13033 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 21f6f7bc
......@@ -801,12 +801,12 @@ circumRadiusSquared( const VectorT<Scalar,3>& _v0,
//-----------------------------------------------------------------------------
template<typename Vec>
template<typename Scalar>
bool
rotationOfTwoVectors( const Vec& _v0,
const Vec& _v1,
Vec& _axis,
typename Vec::value_type& _angle ) {
rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
const VectorT<Scalar,3>& _v1,
VectorT<Scalar,3>& _axis,
typename Scalar& _angle ) {
// Normalize axes
Vec v0 = _v0.normalize();
......
......@@ -123,12 +123,12 @@ circumRadius( const VectorT<Scalar,3>& _v0,
* @param _axis A reference to a vector in which the rotation axis is stored
* @param _angle A reference to a scalar type in which the signed angle is stored
*/
template<typename Vec>
template<typename Scalar>
bool
rotationOfTwoVectors( const Vec& _v0,
const Vec& _v1,
Vec& _axis,
typename Vec::value_type& _angle );
rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
const VectorT<Scalar,3>& _v1,
VectorT<Scalar,3>& _axis,
typename Scalar& _angle );
/** \brief Get determinant of matrix [_v1, _v2, _v3]
*/
......
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