from scipy.spatial import KDTree
points = [(1, -1), (2, 3), (-2, 3), (2, -3)]
kdtree = KDTree(points)
res = kdtree.query((1, 1))
print(res)
Code Example |
---|
Python :: mid-point line drawing |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
Python :: |
Python :: |
Python :: |
:: |
:: |
:: |
:: |
Python :: |
:: |
:: |
Python :: |
:: |
:: |
:: |
:: ring open another file |
:: |
:: |
:: |
:: |
:: |
:: |
:: |