|
NV_VS_VS是向量求和宏,帮助文档里的定义如下:
The utility NV_VS_VS adds a vector to another vector which are each multiplied by a scalar.
NV_VS_VS(a, =, x, *, 2.0, +, y, *, 0.5);
2D: a[0] = (x[0]*2.0) + (y[0]*0.5), a[1] = (x[1]*2.0) + (y[1]*0.5);
Note that the + sign can be used in place of -, *, or /, and the * sign can be replaced by /.
NV_S 在帮助文档里没有明确说明,但是在帮助文档的例子中使用到,用于给一个向量赋值。头文件里的定义如下:
#define NV_S(a,EQ,s)ND_VEC((a)[0]EQ(s),(a)[1]EQ(s),(a)[2]EQ(s))
|
|