Created
September 1, 2016 06:29
-
-
Save ikeryou/d9353c8664df8ba98a70e7770cdea9a2 to your computer and use it in GitHub Desktop.
2点間の角度
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dx:Number = x2 - x1; | |
var dy:Number = y2 - y1; | |
var angle:Number = Math.atan2(dy, dx); // ラジアン |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment