SizeInfo

class ipkiss3.all.SizeInfo(west=None, east=None, north=None, south=None)

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

get_west()
set_west(value)
property west

westmost x-coordinate

get_east()
set_east(value)
property east

eastmost x coordinate

get_north()
set_north(value)
property north

highest y coordinate

get_south()
set_south(value)
property south

lowest y coordinate

get_center()
set_center(value)
property center

center coordinate

get_size()
set_size(value)
property size

size: (width, height)

get_width()
set_width(value)
property width

width

get_height()
set_height(value)
property height

height

get_north_west()
property north_west

north_west coordinate

get_north_east()
property north_east

north east coordinate

get_south_west()
property south_west

south west coordinate

get_south_east()
property south_east

south east coordinate

get_border_on_one_side(side)
get_box()
property box

box: Shape(south_west, north_east)

get_bounding_box()
property bounding_box

shape with enclosing rectangle

get_area()
property area
encloses(other, inclusive=False)

checks whether point is in bounding box

snap_to_grid(grids_per_unit=None)

snaps the size_info object to the grid

expand_to_grid(grids_per_unit=None)

expands the size_info object to the grid

move(coordinate)

translates the center

move_copy(coordinate)

creates a copy of this sizeinfo and moves it

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

grow_absolute(growth)