vec4: vec4(float _x, const nml::vec3& _yzw)

Construct a (_x, _yzw.x, _yzw.y, _yzw.z) vector.

\(\begin{bmatrix} \_x \\ \_yzw.x \\ \_yzw.y \\ \_yzw.z \end{bmatrix}\)

Example

#include "include/vec4.h"
#include "include/vec3.h"
#include <iostream>

int main() {
        nml::vec4 v(1.0f, nml::vec3(2.0f, 3.0f, 4.0f));
        std::cout << nml::to_string(v) << std::endl;

        return 0;
}

Result:

[1.000000, 2.000000, 3.000000, 4.000000]