# lib_wed function library

Dependencies: install_sfo.tpa, lib_are.tpa, lib_eff.tpa, lib_evaluate.tpa, lib_general.tpa, lib_internal.tpa, lib_itm.tpa, lib_list.tpa, lib_macro.tpa, lib_patch.tpa, lib_spl.tpa, lib_table.tpa, lib_text.tpa, lib_tools.tpa

## Description

## Public Functions

add_wed_door(name:s, tiles:s)=() patch

append_to_vertices(x:i, y:i, vertices:s)=(vertices:s) patch

build_wed(width:i, height:i, tis:s, wed:s)=() action

check_wed_for_multiples()=(value:s) patch

clip_polygon_block(x:i, xlen:i, y:i, ylen:i, polygons_in:s, vertices_in:s)=(polygons_out:s, vertices_out:s) patch

count_wallgroups()=(value:s) patch

crop_are_file(x:i, y:i, xlen:i, ylen:i, area:s)=() action

crop_area(x:i, xlen:i, y:i, ylen:i, area_old:s, area_new:s)=() action

crop_doors(x:i, y:i, xlen:i, ylen:i)=() patch

crop_polygons(x:i, xlen:i, y:i, ylen:i)=() patch

deduplicate_vertices(vertices:s)=(vertices:s) patch

delete_polygons(area:s, polygons:s)=() action

delete_wallgroups()=() patch

divide_round_up(numerator:i, denominator:i)=(value:s) patch

duplicate_area(area_old:s, area_new:s)=() action

find_crossing_points(x1:i, x2:i, y1:i, y2:i, xmin:i, xmax:i, ymin:i, ymax:i)=(xcross1:s, ycross1:s, xcross2:s, ycross2:s) patch

find_quadrant(x:i, xmin:i, xmax:i, y:i, ymin:i, ymax:i)=(quadrant:s) patch

flip_area(area:s, file_loc:s, script_array:s)=() action

flip_bounding_box(width_total:i, offset:i, layout:i)=() patch

flip_orientation(offset:i)=() patch

flip_tile(height:i, width:i, tile_number:i)=(new_number:s) patch

flip_vertex(width_total:i, offset:i, is_searchmap:i)=() patch

get_polygons(xmin:i, xmax:i, ymin:i, ymax:i, wed:s, output_file:s)=() action

get_vertex(ind:i, vertices:s)=(x:s, y:s) patch

insert_polygon_block(polygons:s, vertices:s)=() patch

invert_string(block_size:i, string:s)=(string:s) patch
invert_string(block_size:i, string:s)=(string:s) action

invert_vertex_sequence_order(initial_vertex_offset:i, initial_vertex_index:i, vertex_number:i, width_total:i, is_searchmap:i)=() patch

l_r_crossing_point(x1:i, x2:i, y1:i, y2:i, bdy:i)=(xcross:s, ycross:s) patch

order_wall_vertices(vertices:s)=(vertices:s) patch

point_in_bounds(x:i, xmin:i, xmax:i, y:i, ymin:i, ymax:i)=(in_bounds:s, x_in_bounds:s, y_in_bounds:s) patch
point_in_bounds(x:i, xmin:i, xmax:i, y:i, ymin:i, ymax:i)=(in_bounds:s, x_in_bounds:s, y_in_bounds:s) action

realign_vertices(x:i, y:i)=() patch

realign_wall_polygon_bbs(x:i, y:i)=() patch

rebuild_wall_groups()=() patch

rectangle_overlap(xmin_1:i, xmax_1:i, ymin_1:i, ymax_1:i, xmin_2:i, xmax_2:i, ymin_2:i, ymax_2:i)=(overlap:s) patch

remap_search_map_colors(map:s, reference:s, map_out:s)=() action

remap_this_tile(x:i, xlen:i, y:i, ylen:i, height:i, width:i, tile_number:i)=(value:s) patch

remove_tiles(x:i, y:i, xlen:i, ylen:i)=() patch

search_map_truncate(x:i, y:i, xlen:i, ylen:i, type:s)=() patch

stretch_point(x:i, y:i, x_0:i, y_0:i, numerator:i=1, denominator:i=1)=(x:s, y:s) patch

swap_searchmap_code(old:i, new:i, map:s)=() action
swap_searchmap_code(old:i, new:i)=() patch

transcribe_polygons(delta_x:i, delta_y:i, st, retch_numerator:i=1, st, retch_denominator:i=1, st, retch_base_x:i, st, retch_base_y:i, from_area:s, to_area:s, polygons:s)=() action

truncate_bitmap_row(row_num:i, xmin:i, ymin:i, xmax:i, ymax:i, divisor:i, row:s)=(row_out:s, row_empty:s) patch

truncate_polygon(xmax:i, ymax:i, xmin:i, ymin:i, bb_ymax:i, vertices:s)=(vertices:s, bb_xmin:s, bb_xmax:s, bb_ymin:s, bb_ymax:s) patch

truncate_wall(xmin:i, xmax:i, ymin:i, ymax:i, vertices:s)=(vertices:s, in_bounds:s) patch

u_d_crossing_point(x1:i, x2:i, y1:i, y2:i, bdy:i)=(xcross:s, ycross:s) patch

update_bb(x:i, y:i, bb_xmin:i, bb_xmax:i, bb_ymin:i, bb_ymax:i)=(bb_xmin:s, bb_xmax:s, bb_ymin:s, bb_ymax:s) patch