# 300分求计算椭圆RangeBox的算法

Cline 2008-05-25 11:29:10

1. Origin (x,y,z)
2. Primary Axis (a)and Secondary Axis (b)
3. Matrix. (From WCS to OCS). World coordinates system, Object coordinates system.
...全文
233 9 打赏 收藏 举报

9 条回复

Cline 2008-05-26

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.
//
• 打赏
• 举报

Cline 2008-05-25

• 打赏
• 举报

Cline 2008-05-25

• 打赏
• 举报

• 打赏
• 举报

wflishh 2008-05-25

• 打赏
• 举报

Z375511438 2008-05-25

• 打赏
• 举报

1）已知原点（x,y,z) ??
2）横轴a, 纵轴b ??
3）矩阵？方程？？ ??

• 打赏
• 举报

rover___ 2008-05-25
3. Matrix. (From WCS to OCS). World coordinates system, Object coordinates system

• 打赏
• 举报

• 打赏
• 举报

1.9w+

VC/MFC 图形处理/算法

2008-05-25 11:29