Using mathematical functions and operations on vectors (PB only)In assignments, vector variables can be treated exactly as other variables, except that any function or mathematical operation applied to a vector is applied to each dimension, unless an index is used. In the following example, both dimensions of the position vector for the boat layer are multiplied by 1.5 and then assigned to the variable M2: M2 = value (boat, position) * 1.5; In another example, only the first dimension of the position vector is multiplied by 1.5: M2 = value (boat, position) [0] * 1.5; |