diff --git a/docs/api/math/Matrix3.html b/docs/api/math/Matrix3.html index dd7d364c74b208ed3adab04b4a92470eb7fb3158..4625ec4cd34319ed827e2f3a6a476debe3d7c5eb 100644 --- a/docs/api/math/Matrix3.html +++ b/docs/api/math/Matrix3.html @@ -39,7 +39,7 @@ m.elements = [ 11, 21, 31, and internally all calculations are performed using column-major ordering. However, as the actual ordering makes no difference mathematically and most people are used to thinking about matrices in row-major order, the three.js documentation shows matrices in row-major order. Just bear in mind that if you are reading the source - code, you'll have to take the transpose of any matrices outlined here to make sense of the calculations. + code, you'll have to take the [link:https://en.wikipedia.org/wiki/Transpose transpose] of any matrices outlined here to make sense of the calculations.

Constructor

diff --git a/docs/api/math/Matrix4.html b/docs/api/math/Matrix4.html index 6f71207204bbc74c19501d8317899abf46985c6b..3e3fbd73eff818d5a6bfbc98663bbc81f4980f5b 100644 --- a/docs/api/math/Matrix4.html +++ b/docs/api/math/Matrix4.html @@ -40,7 +40,7 @@ [page:Camera Cameras] have two additional matrix4s: - -

Example

- - -var m = new Matrix4(); - -

A Note on Row-Major and Column-Major Ordering

The [page:set]() method takes arguments in [link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order row-major] @@ -62,21 +55,25 @@ var m = new Matrix4(); This means that calling +var m = new Matrix4(); + m.set( 11, 12, 13, 14, 21, 22, 23, 24, - 31, 32, 33, 34 ); + 31, 32, 33, 34, + 41, 42, 43, 44 ); will result in the [page:.elements elements] array containing: m.elements = [ 11, 21, 31, 41, 12, 22, 32, 42, - 13, 23, 33, 43 ]; + 13, 23, 33, 43, + 14, 24, 34, 44 ]; and internally all calculations are performed using column-major ordering. However, as the actual ordering makes no difference mathematically and most people are used to thinking about matrices in row-major order, the three.js documentation shows matrices in row-major order. Just bear in mind that if you are reading the source - code, you'll have to take the transpose of any matrices outlined here to make sense of the calculations. + code, you'll have to take the [link: https://en.wikipedia.org/wiki/Transpose transpose] of any matrices outlined here to make sense of the calculations.