forked from: Calculate Angle Direction from Middle Point in Rectangle

@mxmlc -swf-version 15