/rectiloafier

Rectilinear paths and polygons

Primary LanguageRustGNU Lesser General Public License v3.0LGPL-3.0

rectiloafier

A path or polygon is considered "rectilinear" if all of its angles are at 90° or 270°, and all of its lines are parallel to one of the Cartesian axes. Rectilinear polygons have the special property of being able to be broken into rectangles losslessly. This simple crate provides utilities to determine if a path or polygon is rectilinear, as well as to break it down into rectangles if it is.

License

This library is released under the GNU Lesser General Public License version 3, or (at your option) any later version. Consult the LICENSE file for more information or, alternatively, the web mirror.