MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / ToMatrix4x4

Function ToMatrix4x4

Hydrogent/interface/GfTypeConversions.hpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165template <typename T>
166Matrix4x4<T> ToMatrix4x4(const pxr::GfMatrix4f& m)
167{
168 // clang-format off
169 return Matrix4x4<T>{
170 static_cast<T>(m[0][0]), static_cast<T>(m[0][1]), static_cast<T>(m[0][2]), static_cast<T>(m[0][3]),
171 static_cast<T>(m[1][0]), static_cast<T>(m[1][1]), static_cast<T>(m[1][2]), static_cast<T>(m[1][3]),
172 static_cast<T>(m[2][0]), static_cast<T>(m[2][1]), static_cast<T>(m[2][2]), static_cast<T>(m[2][3]),
173 static_cast<T>(m[3][0]), static_cast<T>(m[3][1]), static_cast<T>(m[3][2]), static_cast<T>(m[3][3]),
174 };
175 // clang-format on
176}
177
178template <typename T>
179Matrix4x4<T> ToMatrix4x4(const pxr::GfMatrix4d& m)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected