Vunit(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
New page: Category:Functions {{Function|vunit(<vector>[,<delimiter>])}} Returns the unit vector (a vector of magnitude 1) which points in the same direction as the given vector. == Example =...
 
(No difference)

Latest revision as of 16:55, 25 November 2010


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

vdim(), vmag()