Crate rectutils

Source
Expand description

Common algorithms for rectangles (clipping, transformation, quadtree, rect packing, etc.)

Modules§

pack
Rectangle packer packs small rectangles into a bigger one.
quadtree
Quadrilateral (quad) tree is used for space partitioning and fast spatial queries.

Structs§

OptionRect
A version of Rect that is optionally None. This simplifies the process of creating a bounding rect from a series of points, as it can start as None and then build an initial rect from the first point.
Rect
A rectangle defined by position and size.

Traits§

Number
Arbitrary number.