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

Unified Diff: ui/gfx/vector3d_f.h

Issue 11418197: Move temporary MathUtil wrappers to permanent home in gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
« ui/gfx/transform.cc ('K') | « ui/gfx/transform.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/vector3d_f.h
diff --git a/ui/gfx/vector3d_f.h b/ui/gfx/vector3d_f.h
index bb93abdeaffb8d1e325123e65df121c27b1ea31f..6ede95fb5e80e3be524af5f6f9446c7b67d232ba 100644
--- a/ui/gfx/vector3d_f.h
+++ b/ui/gfx/vector3d_f.h
@@ -24,6 +24,10 @@ class UI_EXPORT Vector3dF {
explicit Vector3dF(const Vector2dF& other);
+ static Vector3dF XAxis() { return Vector3dF(1, 0, 0); }
+ static Vector3dF YAxis() { return Vector3dF(0, 1, 0); }
+ static Vector3dF ZAxis() { return Vector3dF(0, 0, 1); }
+
float x() const { return x_; }
void set_x(float x) { x_ = x; }
« ui/gfx/transform.cc ('K') | « ui/gfx/transform.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698