Chalarangelo / 30-seconds-of-python

Short Python code snippets for all your development needs
https://www.30secondsofcode.org/python/p/1
Creative Commons Attribution 4.0 International
8.83k stars 1.26k forks source link

add is_within_distance #390

Closed Rude-Monkey closed 4 years ago

Rude-Monkey commented 4 years ago

adds a snippet to tell if provided points are within a given distance from each other.

Rude-Monkey commented 4 years ago

Sorry for the spam then 😅

I have been using it quite a bit for a personal project. Given there are similar snippets in other repos (like here in 30-seconds-of-js), it felt ok to contribute it here. I will agree on the fact that me needing it doesn't mean everybody does though.