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 hashes)