Skip to content

Instantly share code, notes, and snippets.

@ikeryou
Last active September 1, 2016 06:27
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/80f5ec6a3d733df0a97fb7965d731776 to your computer and use it in GitHub Desktop.
Save ikeryou/80f5ec6a3d733df0a97fb7965d731776 to your computer and use it in GitHub Desktop.
2点間の距離
var dx:Number = x2 - x1;
var dy:Number = y2 - y1;
var dist:Number = Math.sqrt(dx * dx + dy * dy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment