mat2: mat2(const nml::vec2& _x, float _yx, float _yy)
Construct a ([_x.x, _x.y], [_yx, _yy]) matrix.
\(\begin{bmatrix} \_x.x & \_yx \\ \_x.y & \_yy \end{bmatrix}\)
Example
#include "include/mat2.h"
#include <iostream>
int main() {
nml::mat2 m(nml::vec2(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]]