# 属性矢量运算¶

Modify an attribute with a math operation.

The Attribute Vector Math Node.

## 输入¶

Standard geometry input.

A, B, C

The inputs to the math operations. Depending on the operation one, two, or all three of the inputs will be used. The attribute types are all vectors of three values, except for the Scale operation, where the second input uses a float type.

The name of the attribute where the computed result is stored. A new attribute with that name is added if it does not exist yet. If it does exist, the values of the existing attribute are overridden.

## 属性¶

The math function to perform.

The sum of A and B.

The difference between A and B.

A和B逐项相乘。(A.x * B.x, A.y * B.y, A.z * B.z)

The entrywise division of A by B. Division by zero results in zero. $$(A.x / B.x, A.y / B.y, A.z / B.z)$$

The entrywise combination of the multiply and addition operations. $$A * B + C$$

The cross product of A and B.

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和B之间的距离。

The length of A.

A与标量输入 缩放 相乘的结果。

The result of normalizing A.

Wrap.

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.

Note

Attributes are converted implicitly to the input data type.

A, B, C

A text field to input an attribute name.

The input is a vector of three float numbers.

## 输出¶

Standard geometry output.

## 例子¶

Here are nodes to move points along the normals of a mesh or points from the Point Distribute node. First the normal attribute is moved to the point domain. Then it is normalized, the length is changed, and it is added to the position. The Factor input could instead be an attribute to vary the displacement per point.