Difference between revisions of "LlVecNorm/fr"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Orthographe)
Line 15: Line 15:
     {
     {
         vector input = <1.0,2.0,3.0>;
         vector input = <1.0,2.0,3.0>;
         llSay(0,"Le vector normalisé de "+(string)input+" est : "+(string)llVecNorm(input) );
         llSay(0, "Le vecteur normalisé de " + (string) input + " est : " + (string) llVecNorm(input) );
     }
     }
}
}

Revision as of 08:58, 12 August 2010

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.