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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rectangle-0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file rectangle-0.4-py3-none-any.whl.

File metadata

  • Download URL: rectangle-0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for rectangle-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 25c9a98e6c4bd85a3b5f3983f791123efe5ffb5043b8ab40e91508eaa103e992
MD5 44348574f810df60288952ec554921fd
BLAKE2b-256 371da1177d6a7637550e45c644570af9283352b6f5d87e07f4fec78aff65c110

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page