X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..1eac776c037870e281d12d39a071babb18cb39ab:/include/wx/matrix.h diff --git a/include/wx/matrix.h b/include/wx/matrix.h index 1c5b592778..8969893444 100644 --- a/include/wx/matrix.h +++ b/include/wx/matrix.h @@ -97,19 +97,24 @@ public: */ }; + +/* +The code is wrong and doesn't compile. Chris Breeze als reported, that +some functions of wxTransformMatrix cannot work because it is not +known if he matrix has been inverted. Be careful when using it. + // Transform X value from logical to device inline double wxTransformMatrix::TransformX(double x) const { -// return (m_isIdentity ? x : (x * m_matrix[0][0] + y * m_matrix[1][0] + m_matrix[2][0])); - return 0; + return (m_isIdentity ? x : (x * m_matrix[0][0] + y * m_matrix[1][0] + m_matrix[2][0])); } // Transform Y value from logical to device inline double wxTransformMatrix::TransformY(double y) const { -// return (m_isIdentity ? y : (x * m_matrix[0][1] + y * m_matrix[1][1] + m_matrix[2][1])); - return 0; + return (m_isIdentity ? y : (x * m_matrix[0][1] + y * m_matrix[1][1] + m_matrix[2][1])); } +*/ // Is the matrix the identity matrix? // Perhaps there's some kind of optimization we can do to make this