Socket
Socket
Sign inDemoInstall

rectangle

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rectangle

A class for handling rectangle regions.


Maintainers
1

Readme

========= Rectangle

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

A class for handling rectangle regions.

Example

.. code-block:: python

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc