NX9+VS2012

#include <uf.h>
#include <uf_ui.h>
#include <uf_vec.h>

UF_initialize();

//把一个向量进行反向
double vec[2] = { 10, 15 };
double negated_vec[2] = { 0 };
UF_VEC2_negate(vec, negated_vec);

//打印
char msg[256];
sprintf(msg, "X:%f,Y:%f", negated_vec[0], negated_vec[1]);
uc1601(msg, 1);

UF_terminate();


阿飞
2021年10月19日

NX二次开发-UFUN把一个二维向量进行反向UF_VEC2_negate

 

阿飞

2021年10月19日

相关文章: