public function getLength($X1, $Y1, $X2, $Y2)
    {
        return sqrt(
            pow(max($X1, $X2) - min($X1, $X2), 2) + pow(max($Y1, $Y2) - min($Y1, $Y2), 2)
        );
    }
public function getLength($X1, $Y1, $X2, $Y2)
    {
        return sqrt(
            pow(max($X1, $X2) - min($X1, $X2), 2) + pow(max($Y1, $Y2) - min($Y1, $Y2), 2)
        );
    }
public function getLength ( $ X1 , $ Y1 , $ X2 , $ Y2 ) { return sqrt ( pow ( max ( $ X1 , $ X2 ) - min ( $ X1 , $ X2 ) , 2 ) + pow ( max ( $ Y1 , $ Y2 ) - min ( $ Y1 , $ Y2 ) , 2 ) ) ; }
Return the length between two points
@param int $X1
@param int $Y1
@param int $X2
@param int $Y2
@return float
Return the length between two points