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

Issue 11367025: ui: Add the gfx::Vector3dF class. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, backer, piman
Visibility:
Public.

Description

ui: Add the gfx::Vector3dF class. This class represents a distance along 3 dimensions. It supports operations such as the cross product and dot product between two such vectors, in addition to the standard operations also supported by the Vector2dF class. BUG=147395 R=sky,pkasting Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165402

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add point3f math #

Patch Set 3 : Add missing files #

Patch Set 4 : Just for git-try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -1 line) Patch
M ui/gfx/point3_f.h View 1 3 chunks +31 lines, -1 line 0 comments Download
A ui/gfx/point3_f.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A ui/gfx/point3_unittest.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A ui/gfx/vector3d_f.h View 1 chunk +101 lines, -0 lines 0 comments Download
A ui/gfx/vector3d_f.cc View 1 chunk +79 lines, -0 lines 0 comments Download
A ui/gfx/vector3d_unittest.cc View 1 chunk +215 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
danakj
8 years, 1 month ago (2012-11-01 00:17:13 UTC) #1
danakj
+cc-bugs
8 years, 1 month ago (2012-11-01 00:17:50 UTC) #2
Peter Kasting
LGTM This makes me wonder offhand if we should have functions (in 2 and 3 ...
8 years, 1 month ago (2012-11-01 00:24:58 UTC) #3
danakj
We've got a method for projecting a vector onto another vector in cc/math_util.h right now. ...
8 years, 1 month ago (2012-11-01 00:39:53 UTC) #4
Peter Kasting
https://codereview.chromium.org/11367025/diff/1/ui/gfx/vector3d_f.h File ui/gfx/vector3d_f.h (right): https://codereview.chromium.org/11367025/diff/1/ui/gfx/vector3d_f.h#newcode96 ui/gfx/vector3d_f.h:96: UI_EXPORT float DotProduct(const Vector3dF& lhs, const Vector3dF& rhs); On ...
8 years, 1 month ago (2012-11-01 01:33:28 UTC) #5
danakj
I added some point math similar to 2d points, with vectors: Point3F - Point3F Point3F ...
8 years, 1 month ago (2012-11-01 01:36:23 UTC) #6
Peter Kasting
LGTM. Note that your classes should only have ToString() methods if you actually need those ...
8 years, 1 month ago (2012-11-01 01:38:49 UTC) #7
danakj
sky can you please take a look for OWNERS? On 2012/11/01 01:38:49, Peter Kasting wrote: ...
8 years, 1 month ago (2012-11-01 01:40:50 UTC) #8
sky
8 years, 1 month ago (2012-11-01 15:52:55 UTC) #9
sky
LGTM
8 years, 1 month ago (2012-11-01 15:53:01 UTC) #10
danakj
thanks!
8 years, 1 month ago (2012-11-01 15:54:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11367025/9009
8 years, 1 month ago (2012-11-01 15:54:24 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-11-01 17:06:58 UTC) #13
Change committed as 165402

Powered by Google App Engine
This is Rietveld 408576698