51 template <
typename Real>
56 Real coefficients[6]);
60 template <
typename Real>
66 for (
int i = 0; i < numPoints; i++)
68 Real
x2 = points[i][0] * points[i][0];
69 Real xy = points[i][0] * points[i][1];
70 Real
y2 = points[i][1] * points[i][1];
71 Real zx = points[i][2] * points[i][0];
72 Real zy = points[i][2] * points[i][1];
73 Real x3 = points[i][0] *
x2;
74 Real x2y = x2*points[i][1];
75 Real xy2 = points[i][0] *
y2;
76 Real y3 = points[i][1] *
y2;
77 Real zx2 = points[i][2] *
x2;
78 Real zxy = points[i][2] * xy;
79 Real zy2 = points[i][2] *
y2;
81 Real x3y = x3*points[i][1];
83 Real xy3 = points[i][0] * y3;
99 A(3, 5) += points[i][0];
100 A(4, 5) += points[i][1];
107 B[5] += points[i][2];
130 A(5, 5) =
static_cast<Real
>(numPoints);
GLfixed GLfixed GLfixed y2
GLfixed GLfixed GLint GLint GLfixed points
bool operator()(int numPoints, Vector3< Real > const *points, Real coefficients[6])