Property | Type | Description | |
---|---|---|---|
E | Number | ||
LN10 | Number | ||
LN2 | Number | ||
LOG10E | Number | ||
LOG2E | Number | ||
PI | Number | ||
SQRT1_2 | Number | ||
SQRT2 | Number |
Method | Description | |
---|---|---|
abs ( Number val ) : Number |
Computes and returns an absolute value for the number specified by the parameter val.
|
|
acos ( Number val ) : Number |
Computes and returns the arc cosine of the number specified in the parameter val, in radians.
|
|
asin ( Number val ) : Number |
Computes and returns the arc sine for the number specified in the parameter val, in radians.
|
|
atan ( Number val ) : Number |
Computes and returns the value, in radians, of the angle whose tangent is specified in the parameter val.
|
|
atan2 ( Number y, Number x ) : Number |
Computes and returns the angle of the point y/x in radians, when measured counterclockwise from a circle's x axis (where 0,0 represents the center of the circle).
|
|
ceil ( Number val ) : Number |
Returns the ceiling of the specified number or expression.
|
|
cos ( Number angleRadians ) : Number |
Computes and returns the cosine of the specified angle in radians.
|
|
exp ( Number val ) : Number |
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter x.
|
|
floor ( Number val ) : Number |
Returns the floor of the number or expression specified in the parameter val.
|
|
log ( Number val ) : Number |
Returns the natural logarithm of the parameter val.
|
|
max ( Number val1, Number val2 ) : Number |
Evaluates val1 and val2 (or more values) and returns the largest value.
|
|
min ( Number val1, Number val2 ) : Number |
Evaluates val1 and val2 (or more values) and returns the smallest value.
|
|
pow ( Number @base, Number pow ) : Number |
Computes and returns base to the power of pow.
|
|
random ( ) : Number |
Returns a pseudo-random number n, where 0 >= n > 1.
|
|
round ( Number val ) : Number |
Rounds the value of the parameter val up or down to the nearest integer and returns the value.
|
|
sin ( Number angleRadians ) : Number |
Computes and returns the sine of the specified angle in radians.
|
|
sqrt ( Number val ) : Number |
Computes and returns the square root of the specified number.
|
|
tan ( Number angleRadians ) : Number |
Computes and returns the tangent of the specified angle.
|
public static abs ( Number val ) : Number | ||
val | Number | The number whose absolute value is returned. |
return | Number |
public static acos ( Number val ) : Number | ||
val | Number | A number from -1.0 to 1.0. |
return | Number |
public static asin ( Number val ) : Number | ||
val | Number | A number from -1.0 to 1.0. |
return | Number |
public static atan ( Number val ) : Number | ||
val | Number | A number that represents the tangent of an angle. |
return | Number |
public static atan2 ( Number y, Number x ) : Number | ||
y | Number | The y coordinate of the point. |
x | Number | The x coordinate of the point. |
return | Number |
public static ceil ( Number val ) : Number | ||
val | Number | A number or expression. |
return | Number |
public static cos ( Number angleRadians ) : Number | ||
angleRadians | Number | A number that represents an angle measured in radians. |
return | Number |
public static exp ( Number val ) : Number | ||
val | Number | The exponent; a number or expression. |
return | Number |
public static floor ( Number val ) : Number | ||
val | Number | A number or expression. |
return | Number |
public static log ( Number val ) : Number | ||
val | Number | A number or expression with a value greater than 0. |
return | Number |
public static max ( Number val1, Number val2 ) : Number | ||
val1 | Number | A number or expression. |
val2 | Number | A number or expression. |
return | Number |
public static min ( Number val1, Number val2 ) : Number | ||
val1 | Number | A number or expression. |
val2 | Number | A number or expression. |
return | Number |
public static pow ( Number @base, Number pow ) : Number | ||
@base | Number | |
pow | Number | A number specifying the power that the parameter base is raised by. |
return | Number |
public static round ( Number val ) : Number | ||
val | Number | The number to round. |
return | Number |
public static sin ( Number angleRadians ) : Number | ||
angleRadians | Number | A number that represents an angle measured in radians. |
return | Number |
public static sqrt ( Number val ) : Number | ||
val | Number | A number or expression greater than or equal to 0. |
return | Number |
public static tan ( Number angleRadians ) : Number | ||
angleRadians | Number | A number that represents an angle measured in radians. |
return | Number |