function pDraw::fixBoxCoordinates
Search API
5.x pDraw.class.php | pDraw::fixBoxCoordinates($Xa, $Ya, $Xb, $Yb) |
3 calls to pDraw::fixBoxCoordinates()
- pDraw::drawRoundedFilledRectangle in inc/
pchart/ pchart/ class/ pDraw.class.php - pDraw::drawRoundedFilledRectangle_deprecated in inc/
pchart/ pchart/ class/ pDraw.class.php - pDraw::drawRoundedRectangle in inc/
pchart/ pchart/ class/ pDraw.class.php
File
- inc/
pchart/ 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));
}