Skip to content
Update Matrix authored by Elijah Rastorguev's avatar Elijah Rastorguev
# Matrix Module # Matrix Module
**Semicolon** is a Game Engine with capable of handling realtime 2D and 3D graphics, via **WebGL**, and computationally intensive tasks such as physics simulations. This module provide high performance vector and matrix math, which is something that Javascript doesn't provide by default.
This module evolved from **glMatrix** and designed to perform vector and matrix operations stupidly fast! By hand-tuning each function for maximum performance and encouraging efficient usage patterns through API conventions.
## A note about Matrix formatting
Matrix Module is modeled after the needs of **WebGL**, which in turn uses matrix conventions set by **OpenGL**. Specifically, a 4x4 matrix is an array of 16 contiguous floats with the 13th, 14th, and 15th elements representing the X, Y, and Z, translation components.
This may lead to some confusion when referencing **OpenGL documentation**, however, which represents out all matricies in column-major format. This means that while in code a matrix may be typed out as:
```javascript
[1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
x, y, z, 0]
```
The same matrix in the OpenGL documentation is written as:
```
1 0 0 x
0 1 0 y
0 0 1 z
0 0 0 0
```
Please rest assured, however, that they are the same thing! This is not unique to Matrix Module, either, as OpenGL developers have long been confused by the apparent lack of consistency between the memory layout and the documentation.
## Learn more about glMatrix
You can learn more about **glMatrix here**:<br/>
[http://glmatrix.net/](http://glmatrix.net/)
\ No newline at end of file