//******* 通过两向量寻找第三方向变量 ********//
bool askThirdVec(double vecX[3], double vecY[3], double vecZ[3])
{
double mtx[9] = { 0.0 };
UF_MTX3_initialize(vecX, vecY, mtx);
vecZ[0] = mtx[6];
vecZ[1] = mtx[7];
vecZ[2] = mtx[8];
return true;
}
bool askThirdVec(Point3d vecX3d, Point3d vecY3d, double vecZ[3])
{
double mtx[9] = { 0.0 };
double vecX[3] = { vecX3d.X,vecX3d.Y,vecX3d.Z };
double vecY[3] = { vecY3d.X,vecY3d.Y,vecY3d.Z };
UF_MTX3_initialize(vecX, vecY, mtx);
vecZ[0] = mtx[6];
vecZ[1] = mtx[7];
vecZ[2] = mtx[8];
return true;
}