Skip to content

Instantly share code, notes, and snippets.

@ikeryou
Created September 1, 2016 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikeryou/d9353c8664df8ba98a70e7770cdea9a2 to your computer and use it in GitHub Desktop.
Save ikeryou/d9353c8664df8ba98a70e7770cdea9a2 to your computer and use it in GitHub Desktop.
2点間の角度
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