LlAtan2/fr
From Second Life Wiki
| Portail LSL | | | Fonctions | | | Évènements | | | Types | | | Opérateurs | | | Constantes | | | Contrôle d'exécution | | | Bibliothèque de scripts | | | Tutoriels |
Description
Fonction: float llAtan2( float y, float x );| 3 | N° de fonction |
| 0.0 | Délai |
| 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
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)); } }
Voir également
Fonctions
| • llSin | llAsin | – | Sinus et arc sinus | |
| • llCos | llAcos | – | Cosinus et arc cosinus | |
| • llTan | – | Tangente |
Articles
| • | Wikipedia:Atan2 | – | Article sur l’arctangente2 | |
| • | Wikipedia:Inverse_trigonometric_function | – | Article sur les fonctions trigonométriques réciproques |

