Skip to content

Instantly share code, notes, and snippets.

@MrHuli
Created Sep 13, 2017
Embed
What would you like to do?
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