Crate rectutils

source ·
Expand description

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

Modules§

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

Structs§

  • 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.
  • A rectangle defined by position and size.

Traits§