Skip to main content

A class for handling rectangle regions.

Project description

https://badge.fury.io/py/rectangle.svg

A class for handling rectangle regions.

Example

In [1]: from rectangle import Rect

In [2]: r = Rect(mins=[1, 2], maxes=[4, 6])

In [3]: r
Out[3]: Rect([1. 2.], [4. 6.])

In [4]: r + 1
Out[4]: Rect([2. 3.], [5. 7.])

In [5]: s = Rect(sizes=[1, 1])

In [6]: r < s
Out[6]: False

In [7]: s <= r
Out[7]: True

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rectangle, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size rectangle-0.4-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page