Skip to main content

Calculates if plot/segment intersects the selected area.

Project description

Selected Area

Build Status PyPI version PyPI - Python Version

nice image

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


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)

Uploaded Source

Supported by

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