Difference between revisions of "LlVecNorm"
Jump to navigation
Jump to search
m (lsl code tagging) |
|||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|examples= | |examples= | ||
< | <lsl> | ||
default { | default { | ||
state_entry() | state_entry() | ||
Line 17: | Line 17: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||{{LSLG|llVecMag}}|}} | |also_functions={{LSL DefineRow||{{LSLG|llVecMag}}|}} |
Revision as of 14:11, 30 March 2008
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 (vec / llVecMag(vec)).
• 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>