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

Side by Side Diff: ui/gfx/geometry/matrix3_f.cc

Issue 109433013: Move geometric types to a separate, more lightweight target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698