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

Issue 8872007: beginning of matrix class (Closed)

Created:
9 years ago by mattsh
Modified:
9 years ago
Reviewers:
Bob Nystrom, Jacob, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

beginning of matrix class BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=2360

Patch Set 1 #

Patch Set 2 : added TODO #

Patch Set 3 : change variable name #

Patch Set 4 : comment about rc #

Patch Set 5 : added more stuff to matrix #

Patch Set 6 : lots of fixes, created server and client lib files #

Patch Set 7 : fixed comments #

Patch Set 8 : more comments #

Patch Set 9 : removed vector4 #

Patch Set 10 : no change #

Total comments: 49

Patch Set 11 : code review feedback #

Patch Set 12 : code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -0 lines) Patch
A utils/matrix/float32.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
A utils/matrix/matrix4.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +369 lines, -0 lines 0 comments Download
A utils/matrix/matrix_client.dartlib View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A utils/matrix/matrix_server.dartlib View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mattsh
This doesn't have all the math operations we need yet, but has the basic structure ...
9 years ago (2011-12-08 04:19:03 UTC) #1
sra1
It seems that your matrix is motivated by geometric transformations (as opposed to, e.g. finite ...
9 years ago (2011-12-08 06:07:07 UTC) #2
mattsh
On 2011/12/08 06:07:07, sra1 wrote: > It seems that your matrix is motivated by geometric ...
9 years ago (2011-12-08 06:21:48 UTC) #3
mattsh
Actually, I think it's better to port the goog.vec.mat4 class here to dart http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/vec/mat4.js so ...
9 years ago (2011-12-08 19:40:35 UTC) #4
mattsh
9 years ago (2011-12-08 21:56:22 UTC) #5
mattsh
OK, I integrated code from goog/vec/mat4.js into this CL, and rewrote to use operators. (My ...
9 years ago (2011-12-12 18:18:01 UTC) #6
Jacob
Looks good http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart File utils/matrix/float32.dart (right): http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart#newcode7 utils/matrix/float32.dart:7: * the browser. note that this is ...
9 years ago (2011-12-12 18:38:15 UTC) #7
mattsh
http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart File utils/matrix/float32.dart (right): http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart#newcode7 utils/matrix/float32.dart:7: * the browser. On 2011/12/12 18:38:17, Jacob wrote: > ...
9 years ago (2011-12-12 19:14:41 UTC) #8
Jacob
lgtm
9 years ago (2011-12-12 20:56:51 UTC) #9
Bob Nystrom
Some random comments but otherwise LGTM http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart File utils/matrix/float32.dart (right): http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart#newcode24 utils/matrix/float32.dart:24: buf[i] = (value ...
9 years ago (2011-12-12 21:46:09 UTC) #10
mattsh
http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart File utils/matrix/float32.dart (right): http://codereview.chromium.org/8872007/diff/15001/utils/matrix/float32.dart#newcode24 utils/matrix/float32.dart:24: buf[i] = (value != null) ? value.toDouble() : 0.0; ...
9 years ago (2011-12-12 22:48:26 UTC) #11
Jacob
http://codereview.chromium.org/8872007/diff/15001/utils/matrix/matrix4.dart File utils/matrix/matrix4.dart (right): http://codereview.chromium.org/8872007/diff/15001/utils/matrix/matrix4.dart#newcode27 utils/matrix/matrix4.dart:27: final double x; One more high level comment. Is ...
9 years ago (2011-12-12 22:59:13 UTC) #12
mattsh
9 years ago (2011-12-12 23:06:35 UTC) #13
http://codereview.chromium.org/8872007/diff/15001/utils/matrix/matrix4.dart
File utils/matrix/matrix4.dart (right):

http://codereview.chromium.org/8872007/diff/15001/utils/matrix/matrix4.dart#n...
utils/matrix/matrix4.dart:27: final double x;
On 2011/12/12 22:59:14, Jacob wrote:
> One more high level comment.  Is there a good reason why these should be
double
> instead of num?

I think for consistency and interoperability with Matrix4 they need to be
double.  (Otherwise all users of this class would need to carefully insert
toDouble() whenever they accessed one of the values.)

http://codereview.chromium.org/8872007/diff/15001/utils/matrix/matrix4.dart#n...
utils/matrix/matrix4.dart:33: Vector3(double x, double y, double z) : x = x, y =
y, z = z {}
On 2011/12/12 22:59:14, Jacob wrote:
> is there a good reason why these are double instead of num?

See above

Powered by Google App Engine
This is Rietveld 408576698