node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

distance-component

distance

Find the distance between two points

Installation

Install with component(1):

$ component install component/distance

API

distance(x1, y1, x2, y2)

Get the distance between two points

distance(0, 4, 3, 0) // 5 

License

MIT