What & How & Why

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
vfx:houdini:vex:functions:math [2020/05/17 09:31] – 创建 codingharevfx:houdini:vex:functions:math [2021/11/11 08:08] (当前版本) codinghare
行 1: 行 1:
 ======Math====== ======Math======
 Math functions in VEX //Ver. 18.0//  Math functions in VEX //Ver. 18.0// 
-===== =====+----
 ====General==== ====General====
 +===Abs===
 +<code vex>
 +//功能:求三种类型数据的绝对值
 +//返回:对应参数的绝对值
 +//对于 vector:绝对值按分量为单位计算。从这一点上看,也是在求两个点之间的距离,类似 distance()
 +/* 使用 */
 +int abs(int n);
 +float abs(float n);
 +<vector> abs(<vector>v);
 +</code>