Atan2 (Math.atan2 Method); Ceil (Math.ceil Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

atan2 (Math.atan2 method)

public static atan2(y:Number, x:Number) : Number
Computes and returns the angle of the point
from a circle's x axis (where 0,0 represents the center of the circle). The return value is
between positive pi and negative pi.
Availability: ActionScript 1.0; Flash Lite 2.0 - In Flash Player 4, the methods and properties
of the Math class are emulated using approximations and might not be as accurate as the non-
emulated math functions that Flash Player 5 supports.
Parameters
- A number specifying the y coordinate of the point.
y:Number
- A number specifying the x coordinate of the point.
x:Number
Returns
- A number.
Number
Example
The following example returns the angle, in radians, of the point specified by the coordinates
(0, 10), such that x = 0 and y = 10. Note that the first parameter to atan2 is always the y
coordinate.
trace(Math.atan2(10, 0)); // output: 1.5707963267949
See also
acos (Math.acos method)
(Math.cos method)

ceil (Math.ceil method)

public static ceil(x:Number) : Number
Returns the ceiling of the specified number or expression. The ceiling of a number is the
closest integer that is greater than or equal to the number.
Availability: ActionScript 1.0; Flash Lite 2.0 - In Flash Player 4, the methods and properties
of the Math class are emulated using approximations and might not be as accurate as the non-
emulated math functions that Flash Player 5 supports.
Parameters
- A number or expression.
x:Number
416
ActionScript classes
,
asin (Math.asin method)
,
sin (Math.sin method)
/
in radians, when measured counterclockwise
y
x
,
atan (Math.atan method)
,
tan (Math.tan method)
,
cos

Advertisement

Table of Contents
loading

Table of Contents