inpoly-cython / Original: https://github.com/dengwirda/inpoly-python
$pip install inpoly-cython
Project from: https://github.com/dengwirda/inpoly-python
I only added the automatic compilation of the fast kernels: https://github.com/dengwirda/inpoly-python#fast-kernels
License Terms (from https://github.com/dengwirda/inpoly-python)
This program may be freely redistributed under the condition that the copyright notices (including this entire header) are not removed, and no compensation is received through use of the software. Private, research, and institutional use is free. You may distribute modified versions of this code UNDER THE CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE TO IT IN THE SAME FILE REMAIN UNDER COPYRIGHT OF THE ORIGINAL AUTHOR, BOTH SOURCE AND OBJECT CODE ARE MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution of this code as part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT WITH THE AUTHOR. (If you are not directly supplying this code to a customer, and you are instead telling them how they can obtain it for free, then you are not required to make any arrangement with me.)
DISCLAIMER: Neither I nor the University of Sydney warrant this code in any way whatsoever. This code is provided "as-is" to be used at your own risk.
Example:
from inpoly_cython import inpoly2
import numpy as np
xmin, xmax, ymin, ymax = 0, 1, 0, 1
x0, y0, x1, y1 = 0.5, 0.5, 0, 1
#define any n-sided polygon
p = np.array([[xmin, ymin],
[xmax, ymin],
[xmax, ymax],
[xmin, ymax],
[xmin, ymin]])
#define some coords
coords = np.array([[x0, y0],
[x1, y1]])
#get boolean mask for points if in or on polygon perimeter
isin, ison = inpoly2(coords, p)
Metadata
Release files for inpoly-cython 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inpoly_cython-0.10.tar.gz | 12.4 kB | Without provenance | Details for inpoly_cython-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inpoly_cython-0.10-py3-none-any.whl | Python 3 | none | any | Details for inpoly_cython-0.10-py3-none-any.whl |
Total release size: 27.1 kB
Release files / inpoly_cython-0.10.tar.gz
| Download URL | inpoly_cython-0.10.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff145cdc3348242f03929effc02a3e711f18b80a234b93f5c529caf55b5f6dbc
|
|
BLAKE2b-256 checksum How to use checksums |
bc80fdbcacbb712a184389ffea8a990a51e77ce814fe63967dd93f3623ed28c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / inpoly_cython-0.10-py3-none-any.whl
| Download URL | inpoly_cython-0.10-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06e3af7e28f42a0066028e7eac0cb39488638a602b884476d9ebe5dacdfa2a58
|
|
BLAKE2b-256 checksum How to use checksums |
ef5735f60cc2bf2ec9fe8c168b393f46767816b613b528e4c335f766fa53b323
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for inpoly-cython 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.