OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 | 7 |
8 #include "ui/gfx/transform.h" | 8 #include "ui/gfx/transform.h" |
9 | 9 |
10 #include <cmath> | 10 #include <cmath> |
11 | 11 |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "ui/gfx/point.h" | 13 #include "ui/gfx/point.h" |
14 #include "ui/gfx/point3_f.h" | 14 #include "ui/gfx/point3_f.h" |
15 #include "ui/gfx/vector3d_f.h" | |
16 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/safe_integer_conversions.h" | 16 #include "ui/gfx/safe_integer_conversions.h" |
18 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
19 #include "ui/gfx/transform_util.h" | 18 #include "ui/gfx/transform_util.h" |
| 19 #include "ui/gfx/vector3d_f.h" |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Taken from SkMatrix44. | 25 // Taken from SkMatrix44. |
26 const double kTooSmallForDeterminant = 1e-8; | 26 const double kTooSmallForDeterminant = 1e-8; |
27 | 27 |
28 double TanDegrees(double degrees) { | 28 double TanDegrees(double degrees) { |
29 double radians = degrees * M_PI / 180; | 29 double radians = degrees * M_PI / 180; |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 matrix_.getDouble(2, 1), | 434 matrix_.getDouble(2, 1), |
435 matrix_.getDouble(2, 2), | 435 matrix_.getDouble(2, 2), |
436 matrix_.getDouble(2, 3), | 436 matrix_.getDouble(2, 3), |
437 matrix_.getDouble(3, 0), | 437 matrix_.getDouble(3, 0), |
438 matrix_.getDouble(3, 1), | 438 matrix_.getDouble(3, 1), |
439 matrix_.getDouble(3, 2), | 439 matrix_.getDouble(3, 2), |
440 matrix_.getDouble(3, 3)); | 440 matrix_.getDouble(3, 3)); |
441 } | 441 } |
442 | 442 |
443 } // namespace gfx | 443 } // namespace gfx |
OLD | NEW |