Prose/Matrix 2D
Copyright (c) 2019 Seán D. Murray SEE MIT LICENSE FILE
A 2D matrix Utility. Make writing node easier, prettier and less error prone. Writes and reads more like prose
Usage
const matrix = ; // Create a new matrix with 15 coordinates all set to 1const matrix1 = 3 5 1;const matrix2 = 3 5 1; // Deep equals if matrix and all values are equal.// returns true/falsematrix1; // Set x y coordinates to value 2.matrix1; // Get the values at coordinates 2,4.matrix1; // Set all values to 3matrix1; // Get a *copy* of the internal 2D matrix in for of array of array.matrix1;