FloatMath
Operator
FloatMath 操作符
Basic 基础Node 节点Parameter 参数FloatMath Operator
FloatMath 操作符
This node works in a similar way to the Math node except that it is able to perform math operations on two inputs that have different data types. The difference between the Math node and the FloatMath node is as follows:
该节点的工作方式与 Math 节点类似,只是它能够对具有不同数据类型的两个输入执行数学操作。Math 节点和 FloatMath 节点之间的区别如下:
数学节点
The Math node carries out its calculations using the data type that is defined in the Attribute Manager. If the node receives input values of a different data type, they are converted to the Math node’s data type before the calculation takes place. TheMath node allows more than two inputs to be used, whereas the FloatMath node is limited to two inputs.
Math 节点使用在 Attribute Manager 中定义的数据类型执行计算。如果节点接收到不同数据类型的输入值,则在进行计算之前将其转换为 Math 节点的数据类型。TheMath 节点允许使用两个以上的输入,而 FloatMath 节点只允许使用两个输入。
This node, on the other hand, always carries out its calculations using the Real data type. If the node receives input values of a data type other than Real, they will be converted to the type Real before the operation is performed. In the case of an input value of the type Vector, the length of the vector will be used.
另一方面,这个节点总是使用 Real 数据类型执行计算。如果节点接收到 Real 以外的数据类型的输入值,则在执行操作之前,它们将被转换为 Real 类型。对于 Vector 类型的输入值,将使用向量的长度。