You are here

function pSpring::getDistance in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pSpring.class.php \pSpring::getDistance()
1 call to pSpring::getDistance()
pSpring::doPass in pChart/class/pSpring.class.php

File

pChart/class/pSpring.class.php, line 837

Class

pSpring

Code

function getDistance($X1, $Y1, $X2, $Y2) {
  return sqrt(($X2 - $X1) * ($X2 - $X1) + ($Y2 - $Y1) * ($Y2 - $Y1));
}