Skip to content

math:vec ..

NOPEname edited this page Aug 15, 2020 · 1 revision

2D and 3D vector calculations.

../[2,3]/add

-Adds two vectors

../[2,3]/cross

-Calculates cross product of two vectors -2D: outputs scalar, 3D: outputs vector

../[2,3]/dot

-Calculates dot product of two vectors -If one vector is written into both inputs, the result is the length of that vector

../[2,3]/get_length

-Calculates the length of a given vector -Works similar to "dot"

../[2,3]/set_length

-Outputs a new vector that is a scaled version of the input vector -This new vector points into the same direct but with a different length

Clone this wiki locally