OperationInterface#

Module for OperationInterface class.

class OperationInterface(geometries)[source]#

Bases: Location

Abstract set operation class. Any geometry operation entity must inherit from this class.

Parameters:

geometries (list) – A list of geometries from pina.geometry such as EllipsoidDomain or CartesianDomain.

property geometries#

The geometries to perform set operation.

property variables#

Spatial variables of the domain.

Returns:

All the variables defined in __init__ in order.

Return type:

list[str]

abstract is_inside(point, check_border=False)[source]#

Check if a point is inside the resulting domain after a set operation is applied.

Parameters:
  • point (torch.Tensor) – Point to be checked.

  • check_border (bool) – If True, the border is considered inside.

Returns:

True if the point is inside the Intersection domain, False otherwise.

Return type:

bool