03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Voir également<br />

acos (métho<strong>de</strong> Math.acos), atan (métho<strong>de</strong> Math.atan), atan2 (métho<strong>de</strong><br />

Math.atan2), cos (métho<strong>de</strong> Math.cos), sin (métho<strong>de</strong> Math.sin), tan (métho<strong>de</strong><br />

Math.tan)<br />

atan (métho<strong>de</strong> Math.atan)<br />

statique publique atan(tangent:Number) : Number<br />

Calcule et renvoie la valeur, en radians, <strong>de</strong> l'angle dont la tangente est spécifiée dans le<br />

paramètre tangent. La valeur renvoyée est comprise entre pi négatif divisé par 2 et pi positif<br />

divisé par 2.<br />

Disponibilité : <strong>ActionScript</strong> 1.0 ; Flash Player 5<br />

Paramètres<br />

tangent:Number - Un nombre représentant la tangente d'un angle.<br />

Renvoie<br />

Number - Un nombre entre pi négatif divisé par 2 et pi positif divisé par 2.<br />

Exemple<br />

L'exemple suivant affiche la valeur d'angle <strong>de</strong> plusieurs tangentes.<br />

trace(Math.atan(-1)); // output: -0.785398163397448<br />

trace(Math.atan(0)); // output: 0<br />

trace(Math.atan(1)); // output: 0.785398163397448<br />

Voir également<br />

acos (métho<strong>de</strong> Math.acos), asin (métho<strong>de</strong> Math.asin), atan2 (métho<strong>de</strong><br />

Math.atan2), cos (métho<strong>de</strong> Math.cos), sin (métho<strong>de</strong> Math.sin), tan (métho<strong>de</strong><br />

Math.tan)<br />

atan2 (métho<strong>de</strong> Math.atan2)<br />

statique publique atan2(y:Number, x:Number) : Number<br />

Calcule et renvoie l'angle <strong>du</strong> point y/x en radians, lorsqu'il est mesuré dans le sens inverse <strong>de</strong>s<br />

aiguilles d'une montre à partir <strong>de</strong> l'axe x d'un cercle (où 0,0 représente le centre <strong>du</strong> cercle). La<br />

valeur renvoyée est comprise entre pi positif et pi négatif.<br />

Disponibilité : <strong>ActionScript</strong> 1.0 ; Flash Player 5<br />

772 Chapitre 2: Classes <strong>ActionScript</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!