Skip to content

Instantly share code, notes, and snippets.

@jpdevries jpdevries/math.js
Created Jan 2, 2016

Embed
What would you like to do?
cool math in js
function distanceBetweenTwoPoints(_a,_b) {
return Math.sqrt(Math.pow(Math.abs(_a.y - _b.y),2) + Math.pow(Math.abs(_a.x - _b.x),2))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.