Difference between revisions of "LlVecNorm"

From Second Life Wiki
Jump to navigation Jump to search
(I forget what happens if you feed this function a zero vector, this edge case should be documented. We are talking about advanced mathematics, if they don't know normalized, they won't know unit too.)
m (hm... wonder why this didn't throw an error here...)
Line 4: Line 4:
|p1_type=vector|p1_name=vec|p1_desc=Any valid vector
|p1_type=vector|p1_name=vec|p1_desc=Any valid vector
|return_type=vector
|return_type=vector
|Return_text=that is '''vec''' normalized (a unit vector sharing the same direction as '''vec''').
|return_text=that is '''vec''' normalized (a unit vector sharing the same direction as '''vec''').
|func_footnote=Functionally equivalent to: <code>'''vec''' / [[llVecMag]]('''vec'''))</code>
|func_footnote=Functionally equivalent to: <code>'''vec''' / [[llVecMag]]('''vec'''))</code>
|spec
|spec

Revision as of 17:22, 9 August 2009