OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |