lvictorino / rectangle-fitter

Finds the best position for a rectangle on a page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Finds the best position for a rectangle on a page.


Languages

Language:C# 100.0%