矢量运算节点
矢量运算节点。
矢量运算 节点对输入矢量执行选定的数学运算。
输入
节点的输入是动态的。 某些输入仅在某些操作中可用。 例如, 缩放 输入仅在 缩放 运算符中可用。
矢量
Input vector \(A = \begin{pmatrix} A_x \\ A_y \\ A_z \end{pmatrix}\).
矢量
Input vector \(B = \begin{pmatrix} B_x \\ B_y \\ B_z \end{pmatrix}\).
比例
Input Scale \(s\).
属性
操作
矢量数学运算符将应用于输入矢量。
相加
The sum of A and B. \(\begin{pmatrix} A_x + B_x \\ A_y + B_y \\ A_z + B_z \end{pmatrix}\)
相减
The difference between A and B. \(\begin{pmatrix} A_x - B_x \\ A_y - B_y \\ A_z - B_z \end{pmatrix}\)
正片叠底(相乘)
The entrywise product of A and B. \(\begin{pmatrix} A_x \cdot B_x \\ A_y \cdot B_y \\ A_z \cdot B_z \end{pmatrix}\)
相除
The entrywise division of A by B. Division by zero results in zero. \(\begin{pmatrix} A_x / B_x \\ A_y / B_y \\ A_z / B_z \end{pmatrix}\)
叉乘
The cross product of A and B. \(\begin{pmatrix} A_y \cdot B_z - A_z \cdot B_y \\ A_z \cdot B_x - A_x \cdot B_z \\ A_x \cdot B_y - A_y \cdot B_x \end{pmatrix}\)
投影
A在B上的投影。
反射
The reflection of A around the normal B. B need not be normalized.
折射
For a given incident vector A, surface normal B and ratio of indices of refraction (IOR), refract outputs the refraction vector R.
面朝前
Orients a vector A to point away from a surface B as defined by its normal C. Computes \((dot(B, C) < 0) ? A : -A\).
点乘
The dot product of A and B. \(A_x \cdot B_x + A_y \cdot B_y + A_z \cdot B_z\)
距离
A和B之间的距离。
长度
The length of A. \(\sqrt{A_x^2 + A_y^2 + A_z^2}\)
比例
The result of multiplying A by the scalar input Scale. \(\begin{pmatrix} s \cdot A_x \\ s \cdot A_y \\ s \cdot A_z \end{pmatrix}\)
规格化
The result of normalizing A. The result vector points to the same direction as A and has a length of 1. If A is (0, 0, 0), the result is (0, 0, 0) as well.
包裹
Wrap.
吸附
将A舍入为B小于或等于A的最大整数倍的结果。
基面
A的基面。
向上取整
A的逐项取整。
模数
A通过B逐项取模。
分数
A的小数部分。
绝对
A的逐项取绝对值。
最小值
A和B中的输入最小值。
最大值
A和B的输入最大值。
正弦
The entrywise Sine of A.
余弦
The entrywise Cosine of A.
切向(正切)
The entrywise Tangent of A.
输出
The output of the node is dynamic. It is either a vector or a scalar depending on the operator. For instance, the Length operator has a scalar output while the Add operator has a vector output.
矢量
输出矢量。
明度
输出值。