Smallest Enclosing Circle
Project description
Smallest enclosing circle
pip install smallestenclosingcircle
import smallestenclosingcircle
center_x, center_y, radius = smallestenclosingcircle.make_circle(points)
# points must be iterable of points e.g.:
# numpy array of shape (N, 2)
# list of tuples
# [(1, 2), (8, 9), (4, 5), (-6, -7), ... ]
#
# Note: if no points are input, returns None
Original source from: https://www.nayuki.io/page/smallest-enclosing-circle
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
Built Distribution
Close
Hashes for smallestenclosingcircle-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c167e1000d6f45d82ec6bc12e55327e874988436b2bfd7ca654653c1364c4fb8 |
|
MD5 | 6ce056f41e422d989716aa5ed7bb7559 |
|
BLAKE2b-256 | 2c6037ee58fa40718a5399f6686564ad225cc954815d993d094a85a91f501a71 |
Close
Hashes for smallestenclosingcircle-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931d88e523bc4b66f17866737834091afff615c8edb0d7f57da8056c4484014f |
|
MD5 | f3257fea70159b2d285fd98e9fcce11b |
|
BLAKE2b-256 | d11044f28a7903474339be98a410aa61121cac188b6d156ba5aa2a18c351ce7f |