41 static const T ONE = 1., TWO = 2.;
43 T dxx = hit.
Dx * hit.
Dx;
45 T dyy = hit.
Dy * hit.
Dy;
53 / (dxx * dyy + dxx * par.
C5 + dyy * par.
C0 + par.
C0 * par.
C5 - dxy * dxy - TWO * dxy * par.
C1
55 T R00 = (dyy + par.
C5) * t;
56 T R01 = -(dxy + par.
C1) * t;
57 T R11 = (dxx + par.
C0) * t;
60 T K00 = par.
C0 * R00 + par.
C1 * R01;
61 T K01 = par.
C0 * R01 + par.
C1 * R11;
62 T K10 = par.
C1 * R00 + par.
C5 * R01;
63 T K11 = par.
C1 * R01 + par.
C5 * R11;
64 T K20 = par.
C2 * R00 + par.
C6 * R01;
65 T K21 = par.
C2 * R01 + par.
C6 * R11;
66 T K30 = par.
C3 * R00 + par.
C7 * R01;
67 T K31 = par.
C3 * R01 + par.
C7 * R11;
68 T K40 = par.
C4 * R00 + par.
C8 * R01;
69 T K41 = par.
C4 * R01 + par.
C8 * R11;
72 par.
X += K00 * dx + K01 * dy;
73 par.
Y += K10 * dx + K11 * dy;
74 par.
Tx += K20 * dx + K21 * dy;
75 par.
Ty += K30 * dx + K31 * dy;
76 par.
Qp += K40 * dx + K41 * dy;
82 par.
C0 += -K00 * cIn[0] - K01 * cIn[1];
83 par.
C1 += -K00 * cIn[1] - K01 * cIn[5];
84 par.
C2 += -K00 * cIn[2] - K01 * cIn[6];
85 par.
C3 += -K00 * cIn[3] - K01 * cIn[7];
86 par.
C4 += -K00 * cIn[4] - K01 * cIn[8];
88 par.
C5 += -K11 * cIn[5] - K10 * cIn[1];
89 par.
C6 += -K11 * cIn[6] - K10 * cIn[2];
90 par.
C7 += -K11 * cIn[7] - K10 * cIn[3];
91 par.
C8 += -K11 * cIn[8] - K10 * cIn[4];
93 par.
C9 += -K20 * cIn[2] - K21 * cIn[6];
94 par.
C10 += -K20 * cIn[3] - K21 * cIn[7];
95 par.
C11 += -K20 * cIn[4] - K21 * cIn[8];
97 par.
C12 += -K30 * cIn[3] - K31 * cIn[7];
98 par.
C13 += -K30 * cIn[4] - K31 * cIn[8];
100 par.
C14 += -K40 * cIn[4] - K41 * cIn[8];
103 T xmx = hit.
X - par.
X;
104 T ymy = hit.
Y - par.
Y;
106 dxx * dyy - dxx * par.
C5 - dyy * par.
C0 + par.
C0 * par.
C5 - dxy * dxy + TWO * dxy * par.
C1 - par.
C1 * par.
C1;
108 ((xmx * (dyy - par.
C5) - ymy * (dxy - par.
C1)) * xmx + (-xmx * (dxy - par.
C1) + ymy * (dxx - par.
C0)) * ymy)