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 // Defines a simple float vector class. This class is used to indicate a | 5 // Defines a simple float vector class. This class is used to indicate a |
6 // distance in two dimensions between two points. Subtracting two points should | 6 // distance in two dimensions between two points. Subtracting two points should |
7 // produce a vector, and adding a vector to a point produces the point at the | 7 // produce a vector, and adding a vector to a point produces the point at the |
8 // vector's distance from the original point. | 8 // vector's distance from the original point. |
9 | 9 |
10 #ifndef UI_GFX_GEOMETRY_VECTOR3D_F_H_ | 10 #ifndef UI_GFX_GEOMETRY_VECTOR3D_F_H_ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const gfx::Vector3dF& other); | 126 const gfx::Vector3dF& other); |
127 | 127 |
128 // Returns the clockwise angle between |base| and |other| where |normal| is the | 128 // Returns the clockwise angle between |base| and |other| where |normal| is the |
129 // normal of the virtual surface to measure clockwise according to. | 129 // normal of the virtual surface to measure clockwise according to. |
130 GFX_EXPORT float ClockwiseAngleBetweenVectorsInDegrees( | 130 GFX_EXPORT float ClockwiseAngleBetweenVectorsInDegrees( |
131 const gfx::Vector3dF& base, | 131 const gfx::Vector3dF& base, |
132 const gfx::Vector3dF& other, | 132 const gfx::Vector3dF& other, |
133 const gfx::Vector3dF& normal); | 133 const gfx::Vector3dF& normal); |
134 | 134 |
135 // This is declared here for use in gtest-based unit tests but is defined in | 135 // This is declared here for use in gtest-based unit tests but is defined in |
136 // the gfx_test_support target. Depend on that to use this in your unit test. | 136 // the //ui/gfx:test_support target. Depend on that to use this in your unit |
137 // This should not be used in production code - call ToString() instead. | 137 // test. This should not be used in production code - call ToString() instead. |
138 void PrintTo(const Vector3dF& vector, ::std::ostream* os); | 138 void PrintTo(const Vector3dF& vector, ::std::ostream* os); |
139 | 139 |
140 } // namespace gfx | 140 } // namespace gfx |
141 | 141 |
142 #endif // UI_GFX_GEOMETRY_VECTOR3D_F_H_ | 142 #endif // UI_GFX_GEOMETRY_VECTOR3D_F_H_ |
OLD | NEW |