mat3: mat3(float _xx, float _xy, float _xz, const nml::vec3& _y, const nml::vec3& _z)

Construct a ([_xx, _xy, _xz], [_y.x, _y.y, _y.z], [_z.x, _z.y, _z.z]) matrix.

\(\begin{bmatrix} \_xx & \_y.x & \_z.x \\ \_xy & \_y.y & \_z.y \\ \_xz & \_y.z & \_z.z \end{bmatrix}\)

Example

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

int main() {
        nml::mat3 m(1.0f, 2.0f, 3.0f, nml::vec3(4.0f, 5.0f, 6.0f), nml::vec3(7.0f, 8.0f, 9.0f));
        std::cout << nml::to_string(m) << std::endl;

        return 0;
}

Result:

[[1.000000, 2.000000, 3.000000], [4.000000, 5.000000, 6.000000], [7.000000, 8.000000, 9.000000]]