请教关于UDF 中有关矢量计算的宏
请问可以进行2个矢量间叉乘的宏是什么?例如用NV_VV可以吗? ND_CROSS_X(x0,x1,x2,y0,y1,y2)
2D:0.0
3D:(((x1)*(y2))-(y1)*(x2)))
ND_CROSS_Y(x0,x1,x2,y0,y1,y2)
2D:0.0
3D:(((x2)*(y0))-(y2)*(x0)))
ND_CROSS_Z(x0,x1,x2,y0,y1,y2)
2D and 3D: (((x0)*(y1))-(y0)*(x1)))
NV_CROSS_X(x,y)
ND_CROSS_X(x,x,x,u,y,y)
NV_CROSS_Y(x,y)
ND_CROSS_X(x,x,x,u,y,y)
NV_CROSS_Z(x,y)
ND_CROSS_X(x,x,x,u,y,y)
NV_CROSS(a,x,y)
a = NV_CROSS_X(x,y);
a = NV_CROSS_Y(x,y);
a = NV_CROSS_Z(x,y); 好的,谢谢,我知道了:lol
页:
[1]