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
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.