Difference between revisions of "LlVecNorm"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
|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 the normal of the vector (''' | |return_text=that is the normal of the vector ('''vac''' / {{LSLG|llVecMag}}('''vac''')). | ||
|spec | |spec | ||
|caveats | |caveats |
Revision as of 13:04, 25 February 2007
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 (vac / llVecMag(vac)).
• vector | vec | – | Any valid vector |
Caveats
Examples
default { state_entry() { vector input = <1.0,2.0,3.0>; llSay(0,"The normal of "+(string)input+" is: "+(string)llVecNorm(input) ); } }