Check if 2 lines overlap
Project description
## Ormuco Code Challenge
This project has been created only for demonstration purpose.
>
> ### The challenge
>
> Your goal for this question is to write a program that accepts two lines (x1,x2) and (x3,x4) on the x-axis and returns whether they overlap. As an example, (1,5) and (2,6) overlaps but not (1,5) and (6,8).
>
### The Answer
source directory: `./overlap`
usage:
```
from overlap import overlap
result = overlap((1,5), (4,25))
# It will return True if the lines overlap, False otherwise
```
This project has been created only for demonstration purpose.
>
> ### The challenge
>
> Your goal for this question is to write a program that accepts two lines (x1,x2) and (x3,x4) on the x-axis and returns whether they overlap. As an example, (1,5) and (2,6) overlaps but not (1,5) and (6,8).
>
### The Answer
source directory: `./overlap`
usage:
```
from overlap import overlap
result = overlap((1,5), (4,25))
# It will return True if the lines overlap, False otherwise
```
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
cf_lines_overlap-0.0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for cf_lines_overlap-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7eda7ad7824924d4641f00c246953bcfa8850e6db05a49d7d386384e48f3e7 |
|
MD5 | 6860b33be02876c48815b1142120fecb |
|
BLAKE2b-256 | 01015161cd38d0fecef406844901cedacc0f94e2d21a43189aec072b5ce749cc |