The MathGeometry.as script will help you to get values related with geometry. You will not need to instance this class, just call the static functions.
Public Static Functions
- speedX(objectX:Number, objectY:Number, objectiveX:Number, objectiveY:Number, speed:Number):Number
- speedY(objectX:Number, objectY:Number, objectiveX:Number, objectiveY:Number, speed:Number):Number
- getAngleRadians(objectX:Number, objectY:Number, objectiveX:Number, objectiveY:Number):Number
- getAngle(objectX:Number, objectY:Number, objectiveX:Number, objectiveY:Number):Number
- getDist(x:Number, y:Number):Number
- getCos(displacementBase:Number, angularFrequency:Number = 1, amplitude:Number = 1, verticalDisplacement:Number = 0):Number
- getSin(displacementBase:Number, angularFrequency:Number = 1, amplitude:Number = 1, verticalDisplacement:Number = 0):Number