Math

class MathAvailable in flash, flash9, neko, js, php, cppThis class defines mathematical functions and constants. static var NEGATIVE_INFINITY(default,null) : Float static var NaN(default,null) : Float static var PI(default,null) : Float static var POSITIVE_INFINITY(default,null) : Float static function abs( v : Float ) : Float static function acos( v : Float ) : Float static function asin( v : Float ) : Float static function atan( v : Float ) : Float static function atan2( y : Float, x : Float ) : Float static function ceil( v : Float ) : Int static function cos( v : Float ) : Float static function exp( v : Float ) : Float static function floor( v : Float ) : Int static function isFinite( f : Float ) : Bool static function isNaN( f : Float ) : Bool static function log( v : Float ) : Float static function max( a : Float, b : Float ) : Float static function min( a : Float, b : Float ) : Float static function pow( v : Float, exp : Float ) : Float static function random() : FloatReturns a pseudo-random Float in the [0,1) range, ie. 0 <= Math.random() < 1. For random Int see Std.random(). static function round( v : Float ) : IntRounds half-way values up. static function sin( v : Float ) : Float static function sqrt( v : Float ) : Float static function tan( v : Float ) : Float
version #10466, modified 2011-04-19 05:14:36 by AndyLi