OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gfx/matrix3_f.h" | 5 #include "ui/gfx/geometry/matrix3_f.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 #ifndef M_PI | 11 #ifndef M_PI |
12 #define M_PI 3.14159265358979323846 | 12 #define M_PI 3.14159265358979323846 |
13 #endif | 13 #endif |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Normalize. | 228 // Normalize. |
229 eigvec.Scale(1.0f / eigvec.Length()); | 229 eigvec.Scale(1.0f / eigvec.Length()); |
230 eigenvectors->set_column(i, eigvec); | 230 eigenvectors->set_column(i, eigvec); |
231 } | 231 } |
232 } | 232 } |
233 | 233 |
234 return Vector3dF(eigenvalues[0], eigenvalues[1], eigenvalues[2]); | 234 return Vector3dF(eigenvalues[0], eigenvalues[1], eigenvalues[2]); |
235 } | 235 } |
236 | 236 |
237 } // namespace gfx | 237 } // namespace gfx |
OLD | NEW |