EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Page 743

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Math 743
To calculate a radian value, use the following formula:
radians = degrees * Math.PI/180
The following is an example of passing the equation as a parameter to calculate the sine of a
45° angle:
Math.sin(45 * Math.PI/180) is the same as Math.sin(.7854)
Availability: ActionScript 1.0; Flash Player 5 - 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.
Property summary
Modifiers Property Description
static E:Number A mathematical constant for the base of natural
logarithms, expressed as e.
static LN10:Number A mathematical constant for the natural logarithm of
10, expressed as loge10, with an approximate value of
2.302585092994046.
static LN2:Number A mathematical constant for the natural logarithm of
2, expressed as loge2, with an approximate value of
0.6931471805599453.
static LOG10E:Number A mathematical constant for the base-10 logarithm of
the constant e (Math.E), expressed as log10e, with an
approximate value of 0.4342944819032518.
static LOG2E:Number A mathematical constant for the base-2 logarithm of
the constant e (Math.E), expressed as log2e, with an
approximate value of 1.442695040888963387.
static PI:Number A mathematical constant for the ratio of the
circumference of a circle to its diameter, expressed as
pi, with a value of 3.141592653589793.
static SQRT1_2:Number A mathematical constant for the square root of one-
half, with an approximate value of
0.7071067811865476.
static SQRT2:Number A mathematical constant for the square root of 2, with
an approximate value of 1.4142135623730951.

Table of Contents

Related product manuals