MCPcopy Create free account
hub / github.com/MrKepzie/Natron / tensor

Function tensor

Engine/CoonsRegularization.cpp:706–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706static void
707tensor(const BezierCPs& p,
708 double time,
709 const Point* internal,
710 Point ret[4][4])
711{
712 ret[0][0] = getPointAt(p, time, 0);
713 ret[0][1] = getLeftPointAt(p, time, 0);
714 ret[0][2] = getRightPointAt(p, time, 3);
715 ret[0][3] = getPointAt(p, time, 3);
716
717 ret[1][0] = getRightPointAt(p, time, 0);
718 ret[1][1] = internal[0];
719 ret[1][2] = internal[3];
720 ret[1][3] = getLeftPointAt(p, time, 3);
721
722 ret[2][0] = getLeftPointAt(p, time, 1);
723 ret[2][1] = internal[1];
724 ret[2][2] = internal[2];
725 ret[2][3] = getRightPointAt(p, time, 2);
726
727 ret[3][0] = getPointAt(p, time, 1);
728 ret[3][1] = getRightPointAt(p, time, 1);
729 ret[3][2] = getLeftPointAt(p, time, 2);
730 ret[3][3] = getPointAt(p, time, 2);
731}
732
733static void
734coonsPatch(const BezierCPs& p,

Callers 1

coonsPatchFunction · 0.85

Calls 3

getPointAtFunction · 0.85
getLeftPointAtFunction · 0.85
getRightPointAtFunction · 0.85

Tested by

no test coverage detected