Performant and light Euclidean distance calculation library

Full documentation | GitHub | NPM

Simple usage

Simply calculating the distance between two-dimensional vectors.

const eucli = require ( ' eucli ' ) eucli ( [ 0 , 0 ] , [ 10 , 10 ] )

Installation

npm i --save eucli

What is Euclidean distance?

Euclidean distance is the length of a straight line between two vectors in Euclidean space. (Euclidean distance is like Pythagorean theorem point distance calculation, but operating in more dimensions!)

Calculating distance in more dimensions

Calculating distance between four-dimensional vectors.

eucli ( [ 10 , 12 , 8 , 4 ] , [ 87 , 76 , 92 , 1 ] )

Documentation

For more detailed library usage information, take a look at the full docs!