vmag()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/vmag() · 291 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& vmag()
 
  Syntax: vmag(<vector>[,<delimiter>]
 
  Returns the magnitude of a vector, using a euclidean distance 
  metric. That is, for vector a b c d, returns sqrt(a^2+b^2+c^2+d^2).
 
  Example:
 
  >think vmag(3 4) 
  5
 	
  See Also: vmul(), vdim(), vadd(), vsub(), vunit()

Site Stats

Snippets: 1791
Codebases: 571