Last updated on
Jul 13, 2023
Binary operation on vector3
In: Substance model graph/Operation
Simple
Description
The Binary operation on float node outputs the result of the operation set by the user on the input vectors.
Operations are carried out per component of input vectors – i.e. for two vectors A = (Ax, Ay, Az)
and B = (Bx, By, Bz)
, the addition of B
to A
is A + B = (Ax + Bx, Ay + By, Az + Bz)
.
Parameters
- Operation Integer
The operation applied to the input values:- Addition
A+B
- Subtraction
A–B
- Multiplication
A*B
- Division
A/B
- Cross product:
AxB = sin(a)*|A|*|B|* n
wherea
is the angle betweenA
andB
, andn
is the unit vector perpendicular to the plane containing A and B - Minimum
Ax
ifAx - Ay <= 0
ORAy
ifAx – Ay > 0
, and so on for each component - Maximum
Ax
ifAx - Ay > 0
ORAy
ifAx – Ay <= 0
, and so on for each component
- Addition
- Left hand side argument Vector3
The first operand A of the operation - Right hand side argument Vector3
The second operand B of the operation
Example Images