LlAcos/fr
< LlAcos
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 llAcos( float val );172 | N° de fonction |
0.0 | Delais |
10.0 | Energie |
Renvoie un float correspondant à l’arc cosinus en radians de val
• float | val | – | val doit être dans l'intervalle [-1.0, 1.0]. (-1.0 <= val <= 1.0) |
Exemples
// Touchez l’objet contenant ce script pour voir l’arc cosinus de nombres aléatoires !
default
{
touch_start(integer num)
{
float r = llFrand(2) - 1.0;
llOwnerSay("L’arc cosinus de " + (string) r + " est " + llAcos(r));
}
}
Voir également
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.