MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / set_matrix

Method set_matrix

framework/scene_graph/components/transform.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void Transform::set_matrix(const glm::mat4 &matrix)
81{
82 glm::vec3 skew;
83 glm::vec4 perspective;
84 glm::decompose(matrix, scale, rotation, translation, skew, perspective);
85
86 invalidate_world_matrix();
87}
88
89glm::mat4 Transform::get_matrix() const
90{

Callers 1

parse_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected