NX9+VS2012 #include <uf.h> #include <uf_ui.h> #include <uf_vec.h> UF_initialize(); //把一个三维向量进行反向 double vec[3] = { 10, 15, 58 }; double negated_vec[3] = { 0 }; UF_VEC3_negate(vec, negated_vec); //打印 char msg[256]; sprintf(msg, "X:%f,Y:%f,Z:%f", negated_vec[0], negated_vec[1], negated_vec[2]); uc1601(msg, 1); UF_terminate(); 阿飞 2021年10月19日
阿飞
2021年10月19日