矢量运算节点

矢量运算节点。

矢量运算 节点对输入矢量执行选定的数学运算。

输入

节点的输入是动态的。 某些输入仅在某些操作中可用。 例如, 缩放 输入仅在 缩放 运算符中可用。

矢量

输入矢量 A=(AxAyAz)

矢量

输入矢量 B=(BxByBz)

比例|缩放

输入比例。

属性

操作

矢量数学运算符将应用于输入矢量。

相加:

A和B的总和。(Ax+BxAy+ByAz+Bz)

相减:

A和B的总和。 (AxBxAyByAzBz)

正片叠底(相乘):

A和B的入境乘积。 beginpmatrixAxBxAyByAzBzendpmatrix

相除:

A 按 B 逐项除以零,得到零。(Ax/BxAy/ByAz/Bz)

乘后再加:

乘法和加法运算的入口组合。 AB+C

叉乘:

Missing \end{pmatrix}

投影:

A在B上的投影。

反射:

A 围绕正常 B 的反射不需要归一化。

折射:

对于给定的入射矢量 A、表面法线 B 和折射率之比 (IOR),折射输出折射矢量 R。

面朝前:

将矢量 A 定向到远离由其正态 C 定义的曲面 B 的方向 <。答:-答`

点乘:

A和B的点积。 AxBx+AyBy+AzBz

距离:

A和B之间的距离。

长度:

A的长度。 sqrtAx2+Ay2+Az2

比例|缩放:

将 A 乘以标量输入 缩放 的结果。:math:'begin{pmatrix} s cdot A_x \ s \ s cdot A_y \ s cdot A_z end{pmatrix}'

规格化:

对A进行归一化的结果。结果向量与A指向同一方向,长度为1。

包裹:

The entrywise output of a value between Min and Max based on the absolute difference between the input value and the nearest integer multiple of Max less than the value.

吸附:

将A舍入为B小于或等于A的最大整数倍的结果。

基面:

Rounds the input value entrywise down to the nearest integer.

向上取整:

Rounds the input value entrywise up to the nearest integer.

模数:

A通过B逐项取模。

分数:

Returns the fractional part of the value entrywise.

绝对:

A的逐项取绝对值。

最小值:

The entrywise minimum value from A and B.

最大值:

The entrywise maximum value from A and B.

正弦:

输入值的 正弦

余弦:

余弦 .

切向(正切):

切向(正切) .

输出

节点的输出是动态的。它要幺是矢量,要幺是标量,具体取决于运算符。例如,长度 运算符具有标量输出,而 Add 运算符具有矢量输出。

矢量

输出矢量。

数值

输出值。