矩阵旋转

    double org[3] = { 10.0,0.0,0.0 };
    double mtx[9] = { 1.0,0,0,0,1.0,0,0,0,1.0 };
    double axisZ[3] = { 0,0,1.0 };

    UF_MTX3_rotate_about_axis(axisZ, 180.0 * DEGRA, mtx);//旋转180°

    tag_t csysTag = NULL_TAG;
    tag_t mtxTag = NULL_TAG;
    UF_CSYS_create_matrix(mtx, &mtxTag);
    UF_CSYS_create_csys(org, mtxTag, &csysTag);
    UF_CSYS_set_wcs(csysTag);
    UF_OBJ_delete_object(csysTag);

 

posted @ 2022-01-11 15:27  老婆饼里有老婆  阅读(113)  评论(0编辑  收藏  举报