VectorDot

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(dotProduct:float) VectorDot vector:array vector:array 
(dotProduct:float) dot vector:array vector:array

Returns the dot (scalar) product of two vectors. The vectors must have the same length.

Warning: If this function fails (generally because the vectors do not have the same length), it will return zero. However, zero is also a valid value for a dot product, so it is the scripter's responsibility to ensure that the vectors have the same length.