Commit b08368cb authored by Jan Möbius's avatar Jan Möbius

Made vectors const as they dont change



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9839 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 53986a97
......@@ -81,7 +81,7 @@ center_of_gravity(const std::vector< VectorT >& _points ) {
template < typename VectorT , typename QuaternionT >
void
icp(std::vector< VectorT >& _points1 , std::vector< VectorT >& _points2 , VectorT& _cog1 , VectorT& _cog2 , double& _scale1 , double& _scale2 , QuaternionT& _rotation )
icp(const std::vector< VectorT >& _points1 , const std::vector< VectorT >& _points2 , VectorT& _cog1 , VectorT& _cog2 , double& _scale1 , double& _scale2 , QuaternionT& _rotation )
{
// compute Mean of Points
_cog1 = center_of_gravity(_points1);
......
......@@ -94,7 +94,7 @@ namespace ICP {
*
*/
template < typename VectorT , typename QuaternionT >
void icp(std::vector< VectorT >& _points1 , std::vector< VectorT >& _points2 , VectorT& _cog1 , VectorT& _cog2 , double& _scale1 , double& _scale2 , QuaternionT& _rotation );
void icp(const std::vector< VectorT >& _points1 , const std::vector< VectorT >& _points2 , VectorT& _cog1 , VectorT& _cog2 , double& _scale1 , double& _scale2 , QuaternionT& _rotation );
//=============================================================================
} //namespace ICP
......
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