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

Unified Diff: ui/gfx/vector2d_f.h

Issue 11369043: ui: Create the gfx::QuadF class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/vector2d_f.h
diff --git a/ui/gfx/vector2d_f.h b/ui/gfx/vector2d_f.h
index e2baa0cc4a6201cefcfe1689ec2fd24586046f19..e78c68821b7f2f18d85decfccc30a7ba61a9bddd 100644
--- a/ui/gfx/vector2d_f.h
+++ b/ui/gfx/vector2d_f.h
@@ -76,6 +76,12 @@ inline Vector2dF operator-(const Vector2dF& lhs, const Vector2dF& rhs) {
return result;
}
+// Return the cross product of two vectors.
+UI_EXPORT double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs);
Peter Kasting 2012/11/02 18:09:37 Isn't the cross product a vector?
danakj 2012/11/02 18:34:10 http://mathworld.wolfram.com/CrossProduct.html Se
Peter Kasting 2012/11/02 20:41:46 Maybe we should name the 2d "cross product" "Deter
danakj 2012/11/02 20:44:00 Well, determinant is only an operation on matrices
+
+// Return the dot product of two vectors.
+UI_EXPORT double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs);
+
} // namespace gfx
#endif // UI_GFX_VECTOR2D_F_H_
« ui/gfx/quad_f.cc ('K') | « ui/gfx/quad_unittest.cc ('k') | ui/gfx/vector2d_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698