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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user