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

Function TransformPoint

test/skinning_test_no_simd.cpp:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
144 result.z = m.rowz.x * v.x + m.rowz.y * v.y + m.rowz.z * v.z + m.rowz.w;
145}
146inline void TransformVector(CalVector4& result, const BoneTransform& m, const CalBase4& v) {
147 result.x = m.rowx.x * v.x + m.rowx.y * v.y + m.rowx.z * v.z;
148 result.y = m.rowy.x * v.x + m.rowy.y * v.y + m.rowy.z * v.z;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected