| Package | sandy.math |
| Class | public class FastMath |
| Method | Defined by | ||
|---|---|---|---|
|
cos(radians:Number):Number
[static]
Returns the cosine of a given value, by looking up it's approximation in a
precomputed table.
| FastMath | ||
|
sin(radians:Number):Number
[static]
Returns the sine of a given value, by looking up it's approximation in a
precomputed table.
| FastMath | ||
|
tan(radians:Number):Number
[static]
Returns the tangent of a given value, by looking up it's approximation in a
precomputed table.
| FastMath | ||
| Constant | Defined by | ||
|---|---|---|---|
| HALF_PI : Number [static]
Math constant pi/2.
| FastMath | ||
| initialized : Boolean [static]
Whether this class has been initialized.
| FastMath | ||
| PRECISION : int = 0x020000 [static]
The precision of the lookup table.
| FastMath | ||
| PRECISION_DIV_2PI : Number [static]
PRECISION / TWO_PI. | FastMath | ||
| PRECISION_S : int = 131071.0 [static]
PRECISION - 1. | FastMath | ||
| TWO_PI : Number [static]
Math constant pi*2.
| FastMath | ||
| cos | () | method |
public static function cos(radians:Number):NumberReturns the cosine of a given value, by looking up it's approximation in a precomputed table.
Parametersradians:Number — The value to cosine.
|
Number — The approximation of the value's cosine.
|
| sin | () | method |
public static function sin(radians:Number):NumberReturns the sine of a given value, by looking up it's approximation in a precomputed table.
Parametersradians:Number — The value to sine.
|
Number — The approximation of the value's sine.
|
| tan | () | method |
public static function tan(radians:Number):NumberReturns the tangent of a given value, by looking up it's approximation in a precomputed table.
Parametersradians:Number — The value to tan.
|
Number — The approximation of the value's tangent.
|
| HALF_PI | constant |
public static const HALF_PI:NumberMath constant pi/2.
| initialized | constant |
public static const initialized:BooleanWhether this class has been initialized.
| PRECISION | constant |
public static const PRECISION:int = 0x020000The precision of the lookup table.
The bigger this number, the more entries there are in the lookup table, which gives more accurate results.
| PRECISION_DIV_2PI | constant |
public static const PRECISION_DIV_2PI:Number
PRECISION / TWO_PI.
| PRECISION_S | constant |
public static const PRECISION_S:int = 131071.0
PRECISION - 1.
| TWO_PI | constant |
public static const TWO_PI:NumberMath constant pi*2.