Package | artcustomer.framework.utils.tools |
Class | public class MathTools |
Inheritance | MathTools Object |
Method | Defined By | ||
---|---|---|---|
degreeToRadian(degree:Number):Number [static]
Convert degree to radian. | MathTools | ||
radianToDegree(radian:Number):Number [static]
Convert radian to degree. | MathTools | ||
random(min:Number = 0, max:Number = 0):Number [static]
Get a random number between two values. | MathTools | ||
randomAngle():Number [static]
Get a random angle. | MathTools | ||
vector3dDifference(pt1:Vector3D, pt2:Vector3D):Vector3D [static]
Difference between two vectors 3d
| MathTools | ||
vectorAngle(pt1:Point, pt2:Point):Number [static]
Compute two vectors angles. | MathTools | ||
vectorCross(pt1:Point, pt2:Point):Number [static]
Cross two vectors. | MathTools | ||
vectorDot(pt1:Point, pt2:Point):Number [static]
Compute two vectors dot. | MathTools |
Constant | Defined By | ||
---|---|---|---|
DEGREE1 : Number = 0.017453292519943295 [static] | MathTools | ||
DEGREE10 : Number = 0.17453292519943295 [static] | MathTools | ||
DEGREE180 : Number = 3.141592653589793 [static] | MathTools | ||
DEGREE30 : Number = 0.5235987755982988 [static] | MathTools | ||
DEGREE360 : Number = 6.283185307179586 [static] | MathTools | ||
DEGREE45 : Number = 0.7853981633974483 [static] | MathTools | ||
DEGREE5 : Number = 0.08726646259971647 [static] | MathTools | ||
DEGREE60 : Number = 1.0471975511965976 [static] | MathTools | ||
DEGREE90 : Number = 1.5707963267948966 [static] | MathTools |
degreeToRadian | () | method |
public static function degreeToRadian(degree:Number):Number
Convert degree to radian.
Parameters
degree:Number — : Degree value.
|
Number —
|
radianToDegree | () | method |
public static function radianToDegree(radian:Number):Number
Convert radian to degree.
Parameters
radian:Number — : Radian value
|
Number —
|
random | () | method |
public static function random(min:Number = 0, max:Number = 0):Number
Get a random number between two values.
Parameters
min:Number (default = 0 )
| |
max:Number (default = 0 )
|
Number —
|
randomAngle | () | method |
public static function randomAngle():Number
Get a random angle.
ReturnsNumber —
|
vector3dDifference | () | method |
public static function vector3dDifference(pt1:Vector3D, pt2:Vector3D):Vector3D
Difference between two vectors 3d
Parameters
pt1:Vector3D | |
pt2:Vector3D |
Vector3D —
|
vectorAngle | () | method |
public static function vectorAngle(pt1:Point, pt2:Point):Number
Compute two vectors angles.
Parameters
pt1:Point | |
pt2:Point |
Number —
|
vectorCross | () | method |
public static function vectorCross(pt1:Point, pt2:Point):Number
Cross two vectors.
Parameters
pt1:Point | |
pt2:Point |
Number —
|
vectorDot | () | method |
public static function vectorDot(pt1:Point, pt2:Point):Number
Compute two vectors dot.
Parameters
pt1:Point | |
pt2:Point |
Number —
|
DEGREE1 | Constant |
public static const DEGREE1:Number = 0.017453292519943295
DEGREE10 | Constant |
public static const DEGREE10:Number = 0.17453292519943295
DEGREE180 | Constant |
public static const DEGREE180:Number = 3.141592653589793
DEGREE30 | Constant |
public static const DEGREE30:Number = 0.5235987755982988
DEGREE360 | Constant |
public static const DEGREE360:Number = 6.283185307179586
DEGREE45 | Constant |
public static const DEGREE45:Number = 0.7853981633974483
DEGREE5 | Constant |
public static const DEGREE5:Number = 0.08726646259971647
DEGREE60 | Constant |
public static const DEGREE60:Number = 1.0471975511965976
DEGREE90 | Constant |
public static const DEGREE90:Number = 1.5707963267948966