vmul()
btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/vmul() · 402 B
From the archive btonline-btechmux-0.6-rc4.tbz2
Download the archive « Back to the archive contents
& vmul() Syntax: vmul(<vector|number>,<vector|number>[,<delimiter>]) Returns the result of either multiplying a vector by a number, or the "dot product" (elementwise product) of two vectors. The dot product of a b c by w x z is aw bx cz Example: > think vmul(1 2 3,2) 2 4 6 > think vmul(1 2 3,2 3 4) 2 6 12 See Also: vmag(), vdim(), vadd(), vsub(), vunit()