Several fixes for wxAffineMatrix2D transformations.

Correct errors in TransformPoint() and TransformDistance().

Change Rotate() to interpret positive angles as rotating clockwise, for
consistency with wxGraphicsContext::Rotate().

Improve the unit test to verify that all the transformations work correctly.

Closes #14334.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-05-25 09:48:09 +00:00
parent 016a3d4cee
commit fd5cfba711
6 changed files with 161 additions and 23 deletions

View File

@@ -156,12 +156,12 @@ public:
virtual void Scale(wxDouble xScale, wxDouble yScale) = 0;
/**
Add counter clockwise rotation to this matrix.
Add clockwise rotation to this matrix.
@param ccRadians
Rotation angle in radians.
@param cRadians
Rotation angle in radians, clockwise.
*/
virtual void Rotate(wxDouble ccRadians) = 0;
virtual void Rotate(wxDouble cRadians) = 0;
/**
Add mirroring to this matrix.