We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jaws.distanceBetween = function(object1, object2) { return Math.sqrt( Math.pow(object1.x-object2.x, 2) + Math.pow(object1.y, object2.y, 2) ) }
I think the last pow call needs to subtract the y's like this: Math.pow(object1.y - object2.y, 2)
The text was updated successfully, but these errors were encountered:
tnx for the report, fixed in d19fc9f
Sorry, something went wrong.
fixing ippa#22
d19fc9f
5312e6c
No branches or pull requests
jaws.distanceBetween = function(object1, object2) {
return Math.sqrt( Math.pow(object1.x-object2.x, 2) + Math.pow(object1.y, object2.y, 2) )
}
I think the last pow call needs to subtract the y's like this:
Math.pow(object1.y - object2.y, 2)
The text was updated successfully, but these errors were encountered: