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

Side by Side Diff: samples/matrix/matrix4.dart

Issue 8966010: moved matrix class from utils to samples (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/matrix/float32.dart ('k') | samples/matrix/matrix_client.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // based on code from 5 // based on code from
6 // http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/vec /mat4.js 6 // http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/vec /mat4.js
7 7
8 /** 8 /**
9 * Thrown if you attempt to normalize a zero length vector. 9 * Thrown if you attempt to normalize a zero length vector.
10 */ 10 */
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 m.m32 = (-m02 * a4 + m12 * a2 - m32 * a0) / det; 360 m.m32 = (-m02 * a4 + m12 * a2 - m32 * a0) / det;
361 361
362 m.m03 = (-m01 * b3 + m11 * b1 - m21 * b0) / det; 362 m.m03 = (-m01 * b3 + m11 * b1 - m21 * b0) / det;
363 m.m13 = (m00 * b3 - m10 * b1 + m20 * b0) / det; 363 m.m13 = (m00 * b3 - m10 * b1 + m20 * b0) / det;
364 m.m23 = (-m03 * a3 + m13 * a1 - m23 * a0) / det; 364 m.m23 = (-m03 * a3 + m13 * a1 - m23 * a0) / det;
365 m.m33 = (m02 * a3 - m12 * a1 + m22 * a0) / det; 365 m.m33 = (m02 * a3 - m12 * a1 + m22 * a0) / det;
366 366
367 return m; 367 return m;
368 } 368 }
369 } 369 }
OLDNEW
« no previous file with comments | « samples/matrix/float32.dart ('k') | samples/matrix/matrix_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698