LlVecNorm/fr

From Second Life Wiki
< LlVecNorm
Revision as of 08:58, 12 August 2010 by Catherine Pfeffer (talk | contribs) (Orthographe)
Jump to navigation Jump to search

Description

Fonction: vector llVecNorm( vector vec );

Renvoie un vector correspondant au vector vec normalisé (vec / llVecMag(vec)).

• vector vec N’importe quel vector valide

Exemples

<lsl> default {

   state_entry()
   {
       vector input = <1.0,2.0,3.0>;
       llSay(0, "Le vecteur normalisé de " + (string) input + " est : " + (string) llVecNorm(input) );
   }

} </lsl>

Voir également

Fonctions

•  llVecMag Renvoie la magnitude d’un vector
•  llVecDist Renvoie la distance entre deux vectors.
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.