/rectangle-fitter

Finds the best position for a rectangle on a page.

Primary LanguageC#

Rectangle Fitter

Simple answer to a common problem: how to find the best position for a rectangle on a page in order to use the most of it.

This algorithm (with Unity3D example scene) tries to place a chosen rectangle at the best position possible. It will always try to put them from top left to bottom right.

example