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.

Paramètres<br />

y:Number - Un nombre spécifiant la coordonnée y <strong>du</strong> point.<br />

x:Number - Un nombre spécifiant la coordonnée x <strong>du</strong> point.<br />

Renvoie<br />

Number - Un nombre.<br />

Exemple<br />

L'exemple suivant renvoie l'angle, en radians, <strong>du</strong> point spécifié par les coordonnées (0, 10),<br />

telles que x = 0 et y = 10. Notez que le premier paramètre attribué à atan2 est toujours la<br />

coordonnée y.<br />

trace(Math.atan2(10, 0)); // output: 1.5707963267949<br />

Voir également<br />

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

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

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

statique publique ceil(x:Number) : Number<br />

Renvoie la valeur maximale <strong>du</strong> nombre ou <strong>de</strong> l'expression spécifié(e). La valeur maximale d'un<br />

nombre est l'entier le plus proche supérieur ou égal au nombre.<br />

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

Paramètres<br />

x:Number - Un nombre ou une expression.<br />

Renvoie<br />

Number - Un entier le plus proche et supérieur ou égal au paramètre x.<br />

Exemple<br />

Le co<strong>de</strong> suivant renvoie une valeur <strong>de</strong> 13 :<br />

Math.ceil(12.5);<br />

Voir également<br />

floor (métho<strong>de</strong> Math.floor), round (métho<strong>de</strong> Math.round)<br />

Math 773

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

Saved successfully!

Ooh no, something went wrong!