GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Maths

Package | ptolemy
Class | public class Maths
Inheritance | Maths Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | hypotenuse(x:Number, y:Number):Number [static] | Maths
|  | mod(a:Number, n:Number):Number [static] | Maths
|  | normal(x:Number, mean:Number = 0, variance:Number = 1):Number [static] | Maths
|  | range(values:Array):Number [static] | Maths
|  | standardDeviation(values:Array):Number [static] | Maths
|  | sum(values:Array):Number [static] | Maths

Public Constants

| Constant | Defined By
--- | --- | ---
|  | cos30 : Number [static] | Maths
|  | cos45 : Number = 0.7071067811865476 [static] | Maths
|  | cos60 : Number = 0.5 [static] | Maths
|  | phi : Number = 1.6180339887 [static] | Maths
|  | pi : Number = 3.141592653589793 [static] | Maths
|  | root2 : Number = 1.4142135623730951 [static] | Maths
|  | root2over2 : Number = 0.7071067811865476 [static] | Maths
|  | root3 : Number [static] | Maths
|  | root3over2 : Number [static] | Maths
|  | root3over3 : Number [static] | Maths
|  | sin30 : Number = 0.5 [static] | Maths
|  | sin45 : Number = 0.7071067811865476 [static] | Maths
|  | sin60 : Number [static] | Maths
|  | tan30 : Number [static] | Maths
|  | tan45 : Number = 1 [static] | Maths
|  | tan60 : Number [static] | Maths
|  | toDegrees : Number = 57.29577951308232 [static] | Maths
|  | toRadians : Number = 0.017453292519943295 [static] | Maths

Method Detail

hypotenuse | () | method

`public static function hypotenuse(x:Number, y:Number):Number`

Parameters

| `x:Number`
| `y:Number`

Returns

| `Number`

mod | () | method |

`public static function mod(a:Number, n:Number):Number`

Parameters

| `a:Number`
| `n:Number`

Returns

| `Number`

normal | () | method |

`public static function normal(x:Number, mean:Number = 0, variance:Number = 1):Number`

Parameters

| `x:Number`
| `mean:Number` (default = `0`)``
| `variance:Number` (default = `1`)``

Returns

| `Number`

range | () | method |

`public static function range(values:Array):Number`

Parameters

| `values:Array`

Returns

| `Number`

standardDeviation | () | method |

`public static function standardDeviation(values:Array):Number`

Parameters

| `values:Array`

Returns

| `Number`

sum | () | method |

`public static function sum(values:Array):Number`

Parameters

| `values:Array`

Returns

| `Number`

Constant Detail

cos30 | Constant

`public static const cos30:Number`

cos45 | Constant |

`public static const cos45:Number = 0.7071067811865476`

cos60 | Constant |

`public static const cos60:Number = 0.5`

phi | Constant |

`public static const phi:Number = 1.6180339887`

pi | Constant |

`public static const pi:Number = 3.141592653589793`

root2 | Constant |

`public static const root2:Number = 1.4142135623730951`

root2over2 | Constant |

`public static const root2over2:Number = 0.7071067811865476`

root3 | Constant |

`public static const root3:Number`

root3over2 | Constant |

`public static const root3over2:Number`

root3over3 | Constant |

`public static const root3over3:Number`

sin30 | Constant |

`public static const sin30:Number = 0.5`

sin45 | Constant |

`public static const sin45:Number = 0.7071067811865476`

sin60 | Constant |

`public static const sin60:Number`

tan30 | Constant |

`public static const tan30:Number`

tan45 | Constant |

`public static const tan45:Number = 1`

tan60 | Constant |

`public static const tan60:Number`

toDegrees | Constant |

`public static const toDegrees:Number = 57.29577951308232`

toRadians | Constant |

`public static const toRadians:Number = 0.017453292519943295`

Thu Jan 16 2014, 01:11 PM +08:00