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 Distribution

rectangle-0.5.1.tar.gz (64.6 kB view details)

Uploaded Source

Built Distribution

rectangle-0.5.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file rectangle-0.5.1.tar.gz.

File metadata

  • Download URL: rectangle-0.5.1.tar.gz
  • Upload date:
  • Size: 64.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for rectangle-0.5.1.tar.gz
Algorithm Hash digest
SHA256 11c4d81fa5087b9f9e5fe84f4f3031c7e03e263c6a8ca60405c5bc9101ab616d
MD5 647413f10b0395a744fdff39d7b0feda
BLAKE2b-256 7eca220902b52d0506c151d4ab149a27380b06a35a05cabc33b6abc7406635af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rectangle-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for rectangle-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3436967d3e8d3a623bf2803e9cec2451bba7cb16f0c3c6f647bc64369e8a3fc7
MD5 4da9ad0a2592aa54f178540c0d0f0ee4
BLAKE2b-256 2560f69133e8405a455b6e972b1ed7eb92acf7ef20bfda0140a9e5e9a5621f90

See more details on using hashes here.

Supported by

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