ipkiss.geometry.size_info.SizeInfo

class ipkiss.geometry.size_info.SizeInfo(west=None, east=None, north=None, south=None)

object which describes the bounding box of a shape, element or structure.

area
bounding_box

shape with enclosing rectangle

box

box: Shape(south_west, north_east)

center

center coordinate

east

eastmost x coordinate

encloses(other, inclusive=False)

checks whether point is in bounding box

expand_to_grid(grids_per_unit=None)

expands the size_info object to the grid

get_area()
get_border_on_one_side(side)
get_bounding_box()
get_box()
get_center()
get_east()
get_height()
get_north()
get_north_east()
get_north_west()
get_size()
get_south()
get_south_east()
get_south_west()
get_west()
get_width()
grow_absolute(growth)
height

height

move(coordinate)

translates the center

move_copy(coordinate)

creates a copy of this sizeinfo and moves it

north

highest y coordinate

north_east

north east coordinate

north_west

north_west coordinate

set_center(value)
set_east(value)
set_height(value)
set_north(value)
set_size(value)
set_south(value)
set_west(value)
set_width(value)
size

size: (width, height)

snap_to_grid(grids_per_unit=None)

snaps the size_info object to the grid

south

lowest y coordinate

south_east

south east coordinate

south_west

south west coordinate

transform(transformation)

transforms the size_info box and makes a new cartesian box over it

transform_copy(transformation)

transforms a copy of the size_info box and makes a new cartesian box over it

west

westmost x-coordinate

width

width