LlVecNorm - Second Life Wiki

LlVecNorm

From Second Life Wiki

Jump to: navigation, search

Function: vector llVecNorm( vector vec );

13 Function ID
0.0 Delay
10.0 Energy

Returns a vector that is the normal of the vector (vec / llVecMag(vec)).

• vector vec Any valid vector

Examples

 
default {
    state_entry()
    {
        vector input = <1.0,2.0,3.0>;
        llSay(0,"The normal of "+(string)input+" is: "+(string)llVecNorm(input) );
    }
}
 

See Also

Functions

•  llVecMag
•  llVecDist