def test_reversals(polygon_with_multisegment: PolygonWithMultisegment) -> None: polygon, multisegment = polygon_with_multisegment result = symmetric_subtract_polygon_from_multisegment(multisegment, polygon) assert are_compounds_similar( result, symmetric_subtract_polygon_from_multisegment( multisegment, reverse_polygon_border(polygon))) assert are_compounds_similar( result, symmetric_subtract_polygon_from_multisegment( multisegment, reverse_polygon_holes(polygon))) assert are_compounds_similar( result, symmetric_subtract_polygon_from_multisegment( multisegment, reverse_polygon_holes_contours(polygon))) assert are_compounds_similar( result, symmetric_subtract_polygon_from_multisegment( reverse_multisegment(multisegment), polygon)) assert are_compounds_similar( result, symmetric_subtract_polygon_from_multisegment( reverse_multisegment_endpoints(multisegment), polygon)) assert are_compounds_similar( result, reverse_compound_coordinates( symmetric_subtract_polygon_from_multisegment( reverse_multisegment_coordinates(multisegment), reverse_polygon_coordinates(polygon))))
def test_reversals(polygon_with_multisegment: PolygonWithMultisegment) -> None: polygon, multisegment = polygon_with_multisegment result = unite_multisegment_with_polygon(multisegment, polygon) assert are_compounds_similar( result, unite_multisegment_with_polygon(multisegment, reverse_polygon_border(polygon))) assert are_compounds_similar( result, unite_multisegment_with_polygon(multisegment, reverse_polygon_holes(polygon))) assert are_compounds_similar( result, unite_multisegment_with_polygon( multisegment, reverse_polygon_holes_contours(polygon))) assert are_compounds_similar( result, unite_multisegment_with_polygon(reverse_multisegment(multisegment), polygon)) assert are_compounds_similar( result, unite_multisegment_with_polygon( reverse_multisegment_endpoints(multisegment), polygon)) assert are_compounds_similar( result, reverse_compound_coordinates( unite_multisegment_with_polygon( reverse_multisegment_coordinates(multisegment), reverse_polygon_coordinates(polygon))))
def test_reversals(multisegment_with_segment: MultisegmentWithSegment) -> None: multisegment, segment = multisegment_with_segment result = unite_segment_with_multisegment(segment, multisegment) assert are_compounds_similar( result, unite_segment_with_multisegment( segment, reverse_multisegment(multisegment))) assert are_compounds_similar( result, unite_segment_with_multisegment( segment, reverse_multisegment_endpoints(multisegment))) assert are_compounds_similar( result, unite_segment_with_multisegment(reverse_segment(segment), multisegment)) assert are_compounds_similar( result, reverse_compound_coordinates( unite_segment_with_multisegment( reverse_segment_coordinates(segment), reverse_multisegment_coordinates(multisegment))))
def test_reversals( multipolygon_with_multisegment: MultipolygonWithMultisegment) -> None: multipolygon, multisegment = multipolygon_with_multisegment result = complete_intersect_multisegment_with_multipolygon( multisegment, multipolygon) assert result == complete_intersect_multisegment_with_multipolygon( multisegment, reverse_multipolygon(multipolygon)) assert result == complete_intersect_multisegment_with_multipolygon( multisegment, reverse_multipolygon_borders(multipolygon)) assert result == complete_intersect_multisegment_with_multipolygon( multisegment, reverse_multipolygon_holes(multipolygon)) assert result == complete_intersect_multisegment_with_multipolygon( multisegment, reverse_multipolygon_holes_contours(multipolygon)) assert result == complete_intersect_multisegment_with_multipolygon( reverse_multisegment(multisegment), multipolygon) assert result == complete_intersect_multisegment_with_multipolygon( reverse_multisegment_endpoints(multisegment), multipolygon)
def test_reversals( multipolygon_with_multisegment: MultipolygonWithMultisegment) -> None: multipolygon, multisegment = multipolygon_with_multisegment result = subtract_multipolygon_from_multisegment(multisegment, multipolygon) assert result == subtract_multipolygon_from_multisegment( multisegment, reverse_multipolygon(multipolygon)) assert result == subtract_multipolygon_from_multisegment( multisegment, reverse_multipolygon_borders(multipolygon)) assert result == subtract_multipolygon_from_multisegment( multisegment, reverse_multipolygon_holes(multipolygon)) assert result == subtract_multipolygon_from_multisegment( multisegment, reverse_multipolygon_holes_contours(multipolygon)) assert are_multisegments_similar( result, subtract_multipolygon_from_multisegment( reverse_multisegment(multisegment), multipolygon)) assert are_multisegments_similar( result, subtract_multipolygon_from_multisegment( reverse_multisegment_endpoints(multisegment), multipolygon))
def test_reversals(multisegment_with_segment: MultisegmentWithSegment) -> None: multisegment, segment = multisegment_with_segment result = symmetric_subtract_multisegment_from_segment( segment, multisegment) assert are_compounds_similar( result, symmetric_subtract_multisegment_from_segment( segment, reverse_multisegment(multisegment))) assert are_compounds_similar( result, symmetric_subtract_multisegment_from_segment( segment, reverse_multisegment_endpoints(multisegment))) assert are_compounds_similar( result, symmetric_subtract_multisegment_from_segment(reverse_segment(segment), multisegment)) assert are_compounds_similar( result, reverse_compound_coordinates( symmetric_subtract_multisegment_from_segment( reverse_segment_coordinates(segment), reverse_multisegment_coordinates(multisegment))))