OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CCMathUtil_h | 5 #ifndef CC_MATH_UTIL_H_ |
6 #define CCMathUtil_h | 6 #define CC_MATH_UTIL_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "ui/gfx/point_f.h" | 10 #include "ui/gfx/point_f.h" |
11 #include "ui/gfx/point3_f.h" | 11 #include "ui/gfx/point3_f.h" |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebTransformationMatrix; | 14 class WebTransformationMatrix; |
15 } | 15 } |
16 | 16 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Returns the smallest angle between the given two vectors in degrees. Neit
her vector is | 105 // Returns the smallest angle between the given two vectors in degrees. Neit
her vector is |
106 // assumed to be normalized. | 106 // assumed to be normalized. |
107 static float smallestAngleBetweenVectors(const FloatSize&, const FloatSize&)
; | 107 static float smallestAngleBetweenVectors(const FloatSize&, const FloatSize&)
; |
108 | 108 |
109 // Projects the |source| vector onto |destination|. Neither vector is assume
d to be normalized. | 109 // Projects the |source| vector onto |destination|. Neither vector is assume
d to be normalized. |
110 static FloatSize projectVector(const FloatSize& source, const FloatSize& des
tination); | 110 static FloatSize projectVector(const FloatSize& source, const FloatSize& des
tination); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace cc | 113 } // namespace cc |
114 | 114 |
115 #endif // #define CCMathUtil_h | 115 #endif // CC_MATH_UTIL_H_ |
OLD | NEW |