LlAtan2/fr
< LlAtan2
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.
LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Fonction: float llAtan2( float y, float x );3 | N° de fonction |
0.0 | Delais |
10.0 | Energie |
Renvoie un float correspondant à l’ arctangente2 de y, x.
• float | y | |||
• float | x |
Semblable à arctangente(y/x), sauf qu'elle utilise le signe de x et de y pour déterminer le quadrant. Renvoie zero si x et y sont nuls.
Exemples
<lsl> default {
state_entry() { float num1 = llFrand(100.0); float num2 = llFrand(100.0);
llOwnerSay("y = " + (string) num1); llOwnerSay("x = " + (string) num2);
llOwnerSay("L'arc tangente de y divisé par x est " + (string) llAtan2(num1, num2)); }
} </lsl>
Voir également
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.