Remember the distance formula:
d = √(x2 - x1)2 + (y2 - y1)2
Coordinate Pair One: (,)
Coordinate Pair Two: (,)
d = √({{x2}} - {{x1}})2 + ({{y2}} - {{y1}})2
d = √{{x2 - x1}}2 + {{y2 - y1}}2
d = √{{((this.x2 - this.x1)*(this.x2 - this.x1))}} + {{((this.y2 - this.y1)*(this.y2 - this.y1))}}
d = √{{((this.x2 - this.x1)*(this.x2 - this.x1)) + ((this.y2 - this.y1)*(this.y2 - this.y1))}}
d = {{Math.sqrt(((this.x2-this.x1)*(this.x2-this.x1))+((this.y2 - this.y1)*(this.y2 - this.y1)))}}