It *is* a 1d array, but the algorithms allow it to be used for 2d-based calculations. The main benefit is because JavaScript is an interpreted language, it's faster by an order of magnitude to only have to use 1 dimension. It wouldn't be faster in c++, for example.
← Return to tool
Comments
Log in with itch.io to leave a comment.
Is there a particular benefit to this over a standard linear (or 1d) array?
It *is* a 1d array, but the algorithms allow it to be used for 2d-based calculations. The main benefit is because JavaScript is an interpreted language, it's faster by an order of magnitude to only have to use 1 dimension. It wouldn't be faster in c++, for example.