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


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日

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM