Calculates if plot/segment intersects the selected area.
Project description
Selected Area
Calculates if plot/segment intersects the selected area.
Installation
pip install selected-area
Usage
from selected_area import Segment, SelectedArea
area = SelectedArea((1, 2), (4,4))
segment = Segment((2, 1.5), (4.5, 3.5))
if area.contains(segment):
print('Segment was selected.')
else:
print('Segment wasn\'t selected.')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selected-area-0.2.0.tar.gz
(3.0 kB
view details)
File details
Details for the file selected-area-0.2.0.tar.gz.
File metadata
- Download URL: selected-area-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.8.0 tqdm/4.40.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3698da489faff71101aec15a64631adf40247d097df404e84e69fde0563a1a4c
|
|
| MD5 |
cfeb83514589d68b462fe64624a6c223
|
|
| BLAKE2b-256 |
e6296b4d44c492b3beb1d3b808a9aa5ce4592ab98ae910badf7bc473f225e0ff
|