Difference between revisions of "× (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
m (Zyzyl moved page Logix Node x to × (LogiX node): Changing name to match standard form)
Line 1: Line 1:
'''x''' (''multiplication'') is a logix node operator that multiplies number,vectors or repeats a string given for a number of times specified.
+
<languages></languages>
 +
<translate>
 +
<!--T:1-->
 +
{{Infobox Logix Node
 +
|Name=×
 +
|Image=[[File:| |noframe|256px]]
 +
|Input0Type=Float|Input0Name=A
 +
|Input1Type=Float|Input1Name=B
 +
|Output0Type=Float|Output0Name=*
 +
}}
  
for Example given the inputs "A" and 3 would result in the output string "AAA"
+
<!--T:2-->
 +
The '''×''' node multiplies the input values by each other and outputs the product.
 +
 
 +
== Usage == <!--T:3-->
 +
When spawned from the node browser, this node accepts the float datatype by default. However, this node can be overloaded to accept different numeric value types if an appropriate wire is connected to an input.
 +
 
 +
This node can be overloaded to accept some mixtures of datatypes. For example if a vector value (e.g. a float3, RGBA color value etc.) is connected to the A input a scalar value (e.g. float) can be connected to the B input. The output will be a vector with the same number of dimensions as A with all elements multiplied by B.
 +
 
 +
Another useful combination of datatypes allows strings to be repeated a defined number of times and concatenated together. To do this, connect the string to be repeated to input A and an integer (int) with the number of times the string should be repeated to input B. See below for an example.
 +
 
 +
== Examples == <!--T:4-->
 +
Given the inputs "A" and 3 would result in the output string "AAA"
  
 
[[File:X.jpg]]
 
[[File:X.jpg]]
 +
 +
 +
== Node Menu == <!--T:5-->
 +
</translate>
 +
[[Category:LogiX{{#translation:}}|×]]
 +
[[Category:LogiX: Actions{{#translation:}}|×]]
 +
{{:NodeMenu-Operators{{#translation:}}}}

Revision as of 17:58, 14 November 2020

Other languages:
English • ‎日本語
×
[[File:| |noframe|256px]]
Inputs
  Float A
  Float B
Outputs
  Float *

The × node multiplies the input values by each other and outputs the product.

Usage

When spawned from the node browser, this node accepts the float datatype by default. However, this node can be overloaded to accept different numeric value types if an appropriate wire is connected to an input.

This node can be overloaded to accept some mixtures of datatypes. For example if a vector value (e.g. a float3, RGBA color value etc.) is connected to the A input a scalar value (e.g. float) can be connected to the B input. The output will be a vector with the same number of dimensions as A with all elements multiplied by B.

Another useful combination of datatypes allows strings to be repeated a defined number of times and concatenated together. To do this, connect the string to be repeated to input A and an integer (int) with the number of times the string should be repeated to input B. See below for an example.

Examples

Given the inputs "A" and 3 would result in the output string "AAA"

X.jpg


Node Menu

Operators
Back Bool Vectors Nullable Parsing - ! !=
% & ?: ?? ^ | |V|
|V|² + +/- +1 < << ==
> >> × ×dT ÷ ÷dT
° · 0 1 -1 1/x
1-x A^-1 Cross Determinant Distance Filter Invalid Get Type
IsInfinity IsNaN IsNull Mask Matrix Element -n NAND
NOR Normalized NotNull Pack Columns Pack rgba Pack Rows Pack xy
Pack xyz Pack xyzw Project Reflect ROL ROR To String
Transpose Unpack Columns Unpack Rows Unpack xy Unpack xyz Unpack xyzw
XNOR