Created
September 13, 2017 15:16
-
-
Save MrHuli/d041be55994b33076cbb0c30747edf9a to your computer and use it in GitHub Desktop.
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
drawLine : function( x1, y1, x2, y2 ) { | |
var x = x1 - x2, | |
y = y1 - y2, | |
length = Math.sqrt( ( x * x ) + ( y * y ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment