vunit()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/vunit() · 325 B

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

Download the archive   « Back to the archive contents

& vunit()
 
  Syntax: vunit(<vector>[,<delimiter>]
 
  Returns the unit vector (a vector of magnitude 1), which points in 
  the same direction as the given vector.
 
  Example:
 
  > think vunit(2 0 0)
  1 0 0
  > think vmul(vunit(5 6 7),vmag(5 6 7))
  5 6 7
 
	See Also: vmul(), vdim(), vadd(), vsub(), vmag()

Site Stats

Snippets: 1791
Codebases: 571