Last active
September 1, 2016 06:27
-
-
Save ikeryou/80f5ec6a3d733df0a97fb7965d731776 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 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