Skip to content

Commit

Permalink
Define Matrix::get_transformed() to be const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moore committed Jan 4, 2009
1 parent 9dc686e commit 8a4c14e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synfig-core/trunk/src/synfig/matrix.cpp
Expand Up @@ -130,7 +130,7 @@ Matrix::set_translate(value_type x, value_type y)
}

Vector
Matrix::get_transformed(const Vector &v)
Matrix::get_transformed(const Vector &v)const
{
return Vector(v[0]*m00+v[1]*m10+m20,
v[0]*m01+v[1]*m11+m21);
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/trunk/src/synfig/matrix.h
Expand Up @@ -130,7 +130,7 @@ class Matrix
//!get_transformed member function.
//! @param v 2D Vector to transform
//! @return The Vector result
Vector get_transformed(const Vector &v);
Vector get_transformed(const Vector &v)const;

//! operator*=. Multiplication and assignment of one matrix by another
//! @param rhs the right hand side of the multiplication operation
Expand Down

0 comments on commit 8a4c14e

Please sign in to comment.