function pDraw::fixBoxCoordinates in Visitors 7.2
Same name and namespace in other branches
- 7 pChart/class/pDraw.class.php \pDraw::fixBoxCoordinates()
3 calls to pDraw::fixBoxCoordinates()
- pDraw::drawRoundedFilledRectangle in pChart/
class/ pDraw.class.php - pDraw::drawRoundedFilledRectangle_deprecated in pChart/
class/ pDraw.class.php - pDraw::drawRoundedRectangle in pChart/
class/ pDraw.class.php
File
- pChart/
class/ pDraw.class.php, line 118
Class
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,
);
}