You are here

function pImage::getLength in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pImage.class.php \pImage::getLength()
1 call to pImage::getLength()
pImage::getTextBox_deprecated in pChart/class/pImage.class.php

File

pChart/class/pImage.class.php, line 180

Class

pImage

Code

function getLength($X1, $Y1, $X2, $Y2) {
  return sqrt(pow(max($X1, $X2) - min($X1, $X2), 2) + pow(max($Y1, $Y2) - min($Y1, $Y2), 2));
}