ViewBox#

class wattson.analysis.visualization.power_grid.view_box.ViewBox#

Bases: object

Methods

__init__

contains_point

copy

distance

Distance to another viewbox (border to border) :param other: ViewBox

force_fill

from_rect

get_bottom_center

get_bottom_left

get_bottom_right

get_center

get_height

get_left_center

get_right_center

get_top_center

get_top_left

get_top_right

get_view_box_data

get_width

get_x

get_y

include_point

is_empty

merge

move_to_zero

offset

offset_by_position

offset_position

offset_vector

overlaps

pad

to_rect

update_from_center

__init__()#
distance(other: ViewBox) float#

Distance to another viewbox (border to border) :param other: ViewBox

Returns:

Distance as float