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, Point, SelectedArea
area = SelectedArea(Point(1, 2), Point(4,4))
segment = Segment(Point(2, 1.5), Point(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.1.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for selected_area-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36abfdd554f29b137877485999af7573736fcb35e70610402fb4095f183988c2 |
|
MD5 | 1ce070da9e89bd28b91a11d56e675214 |
|
BLAKE2b-256 | 4bcbf544d93182e286f0ffe93b810bb5498a5dc3d1f7a171b8dcdb18df973ed1 |