parameters: (lower_bound, upper_bound)
docstring: Factory helper function for DGtal::HyperRectDomain.
  
      Parameters
      ----------
      lower_bound: Point
          lower point of the domain (2D or 3D)
      upper_bound: Point
          upper point of the domain (2D or 3D)
  
      Example:
        dgtal.Domain(lower_bound=dgtal.Point(dim=2).zero,
                     upper_bound=dgtal.Point(dim=2).diagonal(2))
docstring_summary: Factory helper function for DGtal::HyperRectDomain.
docstring_tokens: Factory helper function for DGtal :: HyperRectDomain .
function: def Domain(lower_bound, upper_bound):
      """
      Factory helper function for DGtal::HyperRectDomain.
  
      Parameters
      ----------
      lower_bound: Point
          lower point of the domain (2D or 3D)
      upper_bound: Point
          upper point of the domain (2D or 3D)
  
      Example:
        dgtal.Domain(lower_bound=dgtal.Point(dim=2).zero,
                     upper_bound=dgtal.Point(dim=2).diagonal(2))
      """
      if lower_bound.dimension != upper_bound.dimension:
          raise ValueError("lower_bound and upper_bound have different dimension")
  
      dim = lower_bound.dimension
      _check_dim(dim)
  
      if dim == 2:
          return kernel.DomainZ2i(lower_bound=lower_bound, upper_bound=upper_bound)
      elif dim == 3:
          return kernel.DomainZ3i(lower_bound=lower_bound, upper_bound=upper_bound)
function_tokens: def Domain ( lower_bound , upper_bound ) : if lower_bound . dimension != upper_bound . dimension : raise ValueError ( "lower_bound and upper_bound have different dimension" ) dim = lower_bound . dimension _check_dim ( dim ) if dim == 2 : return kernel . DomainZ2i ( lower_bound = lower_bound , upper_bound = upper_bound ) elif dim == 3 : return kernel . DomainZ3i ( lower_bound = lower_bound , upper_bound = upper_bound )