function pDraw::fixBoxCoordinates

5.x pDraw.class.php pDraw::fixBoxCoordinates($Xa, $Ya, $Xb, $Yb)
3 calls to pDraw::fixBoxCoordinates()

File

inc/pchart/pchart/class/pDraw.class.php, line 118

Class

pDraw

Code

function fixBoxCoordinates($Xa, $Ya, $Xb, $Yb) 
 {
  $X1 = min($Xa, $Xb);
  $Y1 = min($Ya, $Yb);
  $X2 = max($Xa, $Xb);
  $Y2 = max($Ya, $Yb);

  return (array($X1, $Y1, $X2, $Y2));
}