文章作者:里海
来源网站:https://blog.csdn.net/WangPaiFeiXingYuan
简介:
单位化向量,输出向量长度,并输出一个长度为1的向量。
效果:
代码:
#include "me.hpp"
extern DllExport void ufusr(char *param, int *returnCode, int rlen)
{
UF_initialize();
double douV[3] = { 0,2,2 };
double douUnitizeV[3] = { 0,0,0 };
double tolerance = 0.