Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1527)

Unified Diff: ui/gfx/matrix3_f.cc

Issue 22886002: Fix Matrix3F::SolveEigenproblem symmetry check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/matrix3_f.cc
diff --git a/ui/gfx/matrix3_f.cc b/ui/gfx/matrix3_f.cc
index 501c5dda13ef83b43db9f7075ebed233e8a3a2f4..562fdb3a96470aeb50a516e72c08a2fd0e43f8f4 100644
--- a/ui/gfx/matrix3_f.cc
+++ b/ui/gfx/matrix3_f.cc
@@ -125,7 +125,7 @@ Vector3dF Matrix3F::SolveEigenproblem(Matrix3F* eigenvectors) const {
// The matrix must be symmetric.
const float epsilon = std::numeric_limits<float>::epsilon();
if (std::abs(data_[M01] - data_[M10]) > epsilon ||
- std::abs(data_[M02] - data_[M02]) > epsilon ||
+ std::abs(data_[M02] - data_[M20]) > epsilon ||
std::abs(data_[M12] - data_[M21]) > epsilon) {
NOTREACHED();
return Vector3dF();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698