MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / GetM44V4Product

Function GetM44V4Product

src/OpenColorIO/MathUtils.cpp:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289{
290
291void GetM44V4Product(float* vout, const float* m, const float* v_)
292{
293 float v[4];
294 memcpy(v, v_, 4*sizeof(float));
295
296 vout[0] = m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v[3];
297 vout[1] = m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v[3];
298 vout[2] = m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v[3];
299 vout[3] = m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v[3];
300}
301
302void GetV4Sum(float* vout, const float* v1, const float* v2)
303{

Callers 4

GetMxbCombineFunction · 0.85
GetMxbInverseFunction · 0.85
GetMxbResultFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

GetMxbResultFunction · 0.68
OCIO_ADD_TESTFunction · 0.68