https://sharelearn.net/learn/courses/udemy-javascript-math/
JavaScript Math D3.js Polyline The Pathagorean Theorem