38 Point q(p.first - mean.first, p.second - mean.second);
40 sum_dxdx += q.first * q.first;
41 sum_dydy += q.second * q.second;
42 sum_dxdy += q.first * q.second;
44 double theta = 0.5 * atan(2.0 * sum_dxdy / (sum_dydy - sum_dxdx));
63 double X =
cos(theta) * (p.first - mean.first) -
sin(theta) * (p.second
65 double Y =
sin(theta) * (p.first - mean.first) +
cos(theta) * (p.second
84 return Point(major, minor);
93 double ecc =
sqrt((a * a - b * b) / (a * a));
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
Cos< T >::type cos(const T &t)