mat2: mat2(float _xx, float _xy, float _yx, float _yy)

Construct a ([_xx, _xy], [_yx, _yy]) matrix.

\(\begin{bmatrix} \_xx & \_yx \\ \_xy & \_yy \end{bmatrix}\)

Example

#include "include/mat2.h"
#include <iostream>

int main() {
        nml::mat2 m(1.0f, 2.0f, 3.0f, 4.0f);
        std::cout << nml::to_string(m) << std::endl;

        return 0;
}

Result:

[[1.000000, 2.000000], [3.000000, 4.000000]]