muspan.shape_operations#

The muspan.shape_operations module provides tools for manipulating shape objects in MuSpAn. This module includes the following submodules:

Shape operations

combine_shapes

Combine two shapes in the domain using a specified operation.

return_difference_of_shapes

Compute the difference between two shapes within a given domain.

return_intersection_of_shapes

Compute the intersection of two shapes within a given domain.

return_union_of_shapes

Compute the union of two shapes within a given domain.

Shape operations helper functions

distance_point_to_line_segment

Calculate the minimum distance from a point to a line segment.