MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ScaleMatrix

Function ScaleMatrix

test/skinning_test_no_simd.cpp:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111};
112
113inline void ScaleMatrix(BoneTransform& result, const BoneTransform& mat, const float s) {
114 result.rowx.x = s * mat.rowx.x;
115 result.rowx.y = s * mat.rowx.y;
116 result.rowx.z = s * mat.rowx.z;
117 result.rowx.w = s * mat.rowx.w;
118 result.rowy.x = s * mat.rowy.x;
119 result.rowy.y = s * mat.rowy.y;
120 result.rowy.z = s * mat.rowy.z;
121 result.rowy.w = s * mat.rowy.w;
122 result.rowz.x = s * mat.rowz.x;
123 result.rowz.y = s * mat.rowz.y;
124 result.rowz.z = s * mat.rowz.z;
125 result.rowz.w = s * mat.rowz.w;
126}
127inline void AddScaledMatrix(BoneTransform& result, const BoneTransform& mat, const float s) {
128 result.rowx.x += s * mat.rowx.x;
129 result.rowx.y += s * mat.rowx.y;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected