🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

selected-area

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selected-area

Calculates if plot/segment intersects the selected area.

0.2.0
Maintainers
1

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.')

FAQs

Did you know?

Socket

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