Difference between revisions of "LlVecNorm"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
|p1_type=vector | |p1_type=vector | ||
|p1_name=vec | |p1_name=vec | ||
|p1_desc | |p1_desc=Any valid vector | ||
|p2_type|p2_name|p2_desc | |p2_type|p2_name|p2_desc | ||
|p3_type|p3_name|p3_desc | |p3_type|p3_name|p3_desc | ||
Line 38: | Line 38: | ||
|notes | |notes | ||
}} | }} | ||
[[Category:LSL_Functions]] | [[Category:LSL_Functions]] | ||
[[Category:LSL_Math]] | [[Category:LSL_Math]] |
Revision as of 21:03, 25 January 2007
Outdated templated used
Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llVecNorm( vector vec );13 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the normal of the vector (val / llVecMag(val)).
• vector | vec | – | Any valid vector |
Caveats
Examples
<lsl> default {
state_entry() { vector input = <1.0,2.0,3.0>; llSay(0,"The normal of "+(string)input+" is: "+(string)llVecNorm(input) ); }
}
</lsl>