LlVecNorm
Looking for the current API? Open the llVecNorm reference →
Function notes
Examples
default {
state_entry()
{
vector input = <1.0,2.0,3.0>;
llSay(0,"The unit vector on "+(string)input+" is: "+(string)llVecNorm(input) );
}
}Notes
- Mathematically equivalent to:
- vec / llVecMag( vec )
- vec / llSqrt( vec.x * vec.x + vec.y * vec.y + vec.z * vec.z )
See also: functions
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Original shared helper source (conditional wiki logic is not evaluated)
{{Issues|SVC-4711|[[llVecNorm]] returns zero vector as result when input is below a certain magnitude|type=bug}}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.