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

Function AddScaledMatrix

test/skinning_test_no_simd.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
130 result.rowx.z += s * mat.rowx.z;
131 result.rowx.w += s * mat.rowx.w;
132 result.rowy.x += s * mat.rowy.x;
133 result.rowy.y += s * mat.rowy.y;
134 result.rowy.z += s * mat.rowy.z;
135 result.rowy.w += s * mat.rowy.w;
136 result.rowz.x += s * mat.rowz.x;
137 result.rowz.y += s * mat.rowz.y;
138 result.rowz.z += s * mat.rowz.z;
139 result.rowz.w += s * mat.rowz.w;
140}
141inline void TransformPoint(CalVector4& result, const BoneTransform& m, const CalBase4& v) {
142 result.x = m.rowx.x * v.x + m.rowx.y * v.y + m.rowx.z * v.z + m.rowx.w;
143 result.y = m.rowy.x * v.x + m.rowy.y * v.y + m.rowy.z * v.z + m.rowy.w;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected