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; } |