@@ -1324,16 +1324,18 @@ export class Matrix extends MatrixInterface {
1324
1324
* <div class="norender"><code>
1325
1325
* // Example using p5.js to demonstrate orthographic projection
1326
1326
* function setup() {
1327
- * let orthoMatrix = new p5.Matrix(4);
1328
- * orthoMatrix.ortho(-200, 200, -200, 200, 0.1, 1000);
1329
- * applyMatrix(
1327
+ * let orthoMatrix = new p5.Matrix(4);
1328
+ * console.log(orthoMatrix.matrix.toString()) // Output: 1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1
1329
+ * orthoMatrix.ortho(-200, 200, -200, 200, 0.1, 1000);
1330
+ * console.log(orthoMatrix.matrix.toString()) // Output: [24 0.004999999888241291,0,0,0,0,0.004999999888241291,0,0,0,0,-0.0020002000965178013,0,0,0,-1.0002000331878662,1]
1331
+ * applyMatrix(
1330
1332
* orthoMatrix.mat4[0], orthoMatrix.mat4[1], orthoMatrix.mat4[2], orthoMatrix.mat4[3],
1331
1333
* orthoMatrix.mat4[4], orthoMatrix.mat4[5], orthoMatrix.mat4[6], orthoMatrix.mat4[7],
1332
1334
* orthoMatrix.mat4[8], orthoMatrix.mat4[9], orthoMatrix.mat4[10], orthoMatrix.mat4[11],
1333
1335
* orthoMatrix.mat4[12], orthoMatrix.mat4[13], orthoMatrix.mat4[14], orthoMatrix.mat4[15]
1334
- * );
1335
- * }
1336
- *
1336
+ * );
1337
+ * console.log(orthoMatrix.matrix.toString()) // Output: [31 0.004999999888241291,0,0,0,0,0.004999999888241291,0,0,0,0,-0.0020002000965178013,0,0,0,-1.0002000331878662,1]
1338
+ * }
1337
1339
* </code></div>
1338
1340
*
1339
1341
*/
0 commit comments