谢谢大家!
1.z是多敲了
2.问题已经解决.
// Algorithm:
// Pick up a point on the ellipse which is not rotated and on xy plane:
// [a*cos(angle), b*sin(angle), 0]
// Transform the point by the rotation matrix to get the point on the ellipse whose
// origin is the origin of WCS.
// x = m[0][0]*a*cos(angle) + m[0][1]*b*sin(angle);
// y = m[1][0]*a*cos(angle) + m[1][1]*b*sin(angle);
// z = m[2][0]*a*cos(angle) + m[2][1]*b*sin(angle);
////
// Compute the first derivation of the 3d equations above, and then
// caculate the angle where the x, y and z is minimum or maximum.
//
// Use the angles to compute the x, y and z coordinates.
//