C++ mathematics library for graphics software and transformations
C++ mathematics library for graphics software
glm$ #include <glm/glm.hpp>
glm::vec3 position(1.0f, 2.0f, 3.0f);$ glm::mat4 transform = glm::translate(glm::mat4(1.0f), glm::vec3(1.0f, 2.0f, 3.0f));$ glm::vec4 result = projectionMatrix * viewMatrix * modelMatrix * vertexPosition;