Geometry Basics: Distance between points in 2D
Last updated
Was this helpful?
Last updated
Was this helpful?
return squre root of | a.x - b.x |**2
+ | a.y - b.y |**2
in JavaScript Math class there is method for this
above expression has some problem (I guess that's library problem)
so I hand wrote that