dist(x1,y1,x2,y2)

Description

dist() takes in 2 x,y positions and finds the distance between them

Parameters

dist() takes 4 paraeters, (x , y , x , y)

Usage

log dist(-10,0,10,0)
// 20

log dist(-10,-10,10,10)
// 28.284271247461902

Last updated