Skip to content

Instantly share code, notes, and snippets.

@joehonton
Created February 21, 2021 03:45
Show Gist options
  • Save joehonton/66f900a3e4091c6c6547649b640d620b to your computer and use it in GitHub Desktop.
Save joehonton/66f900a3e4091c6c6547649b640d620b to your computer and use it in GitHub Desktop.
var initialDistance = Math.hypot(initialRise, initialRun);
var latestDistance = Math.hypot(latestRise, latestRun);
var deltaDistance = Math.abs(latestDistance - initialDistance);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment