Nút Toán Vectơ (Vector Math Node)
The Vector Math node performs the selected math operation on the input vectors.
Đầu Vào (Inputs)
The inputs of the node are dynamic. Some inputs are only available in certain operations. For instance, the Scale input is only available in the Scale operator.
- Véctơ (Vector)
Input vector \(A = \begin{pmatrix} A_x \\ A_y \\ A_z \end{pmatrix}\).
- Véctơ (Vector)
Input vector \(B = \begin{pmatrix} B_x \\ B_y \\ B_z \end{pmatrix}\).
- Tỷ Lệ (Scale)
Input Scale \(s\).
Tính Chất (Properties)
- Thao Tác (Operation)
The vector math operator to be applied on the input vectors.
- Cộng Thêm (Add)
The sum of A and B. \(\begin{pmatrix} A_x + B_x \\ A_y + B_y \\ A_z + B_z \end{pmatrix}\)
- Trừ (Subtract)
The difference between A and B. \(\begin{pmatrix} A_x - B_x \\ A_y - B_y \\ A_z - B_z \end{pmatrix}\)
- Nhân (Multiply)
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}\)
- Chia (Divide)
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}\)
- Nhân Cộng (Multiply Add)
The entrywise combination of the multiply and addition operations. \(A * B + C\)
- Tích Hữu Hướng (Cross Product)
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}\)
- Phóng Chiếu (Project)
The projection of A onto B.
- Phản Ảnh (Reflect)
The reflection of A around the normal B. B need not be normalized.
- Khúc Xạ (Refract)
For a given incident vector A, surface normal B and ratio of indices of refraction (IOR), refract outputs the refraction vector R.
- Đối Mặt về Phía Trước (Faceforward)
Orients a vector A to point away from a surface B as defined by its normal C. Computes \((dot(B, C) < 0) ? A : -A\).
- Tích Vô Hướng (Dot Product)
The dot product of A and B. \(A_x \cdot B_x + A_y \cdot B_y + A_z \cdot B_z\)
- Khoảng Cách (Distance)
The distance between A and B.
- Chiều Dài (Length)
The length of A. \(\sqrt{A_x^2 + A_y^2 + A_z^2}\)
- Tỷ Lệ (Scale)
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}\)
- Bình Thường Hóa (Normalize)
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.
- Nhắc Lại/Đảo Chiều (Wrap)
Wrap.
- Bám Dính (Snap)
The result of rounding A to the largest integer multiple of B less than or equal A.
- Sàn/Nền Nhà (Floor)
The entrywise floor of A.
- Làm Tròn Lên (Ceil)
The entrywise ceiling of A.
- Chia Lấy Số Dư/Modulo (Modulo)
The entrywise modulo of A by B.
- Phân Số (Fraction)
The fractional part of A.
- Tuyệt Đối (Absolute)
The entrywise absolute value of A.
- Tối Thiểu (Minimum)
The entrywise minimum from A and B.
- Tối Đa (Maximum)
The entrywise maximum from A and B.
- Sin (Sine)
The entrywise Sine of A.
- Cos (Cosine)
The entrywise Cosine of A.
- Tangent (Tiếp Tuyến)
The entrywise Tangent of A.
Đầu Ra (Outputs)
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.
- Véctơ (Vector)
Output vector.
- Value (Giá Trị)
Giá trị Đầu Ra/xuất ngoại/kết quả.