distance-component

0.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i distance-component

      Weekly Downloads

      1

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • mattmueller