[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
VectorDot
Revision as of 00:28, 10 August 2010 by imported>DragoonWraith
< [[::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.