Currently, CasualOS does not have generalized matrix math handling. Ideally, there would be at least two different classes for this: Matrix3 (for 3x3 matrices) and Matrix4 (for 4x4 ones). They should support all common matrix operations (transpose, multiply, invert, etc.) in addition to ones that make working with the other specialized classes (Vectors and Rotations) easier (transforming directions, convert rotation to matrix, compose matrix from position rotation and scale, etc.).
Currently, CasualOS does not have generalized matrix math handling. Ideally, there would be at least two different classes for this: Matrix3 (for 3x3 matrices) and Matrix4 (for 4x4 ones). They should support all common matrix operations (transpose, multiply, invert, etc.) in addition to ones that make working with the other specialized classes (Vectors and Rotations) easier (transforming directions, convert rotation to matrix, compose matrix from position rotation and scale, etc.).