Collides a point with a space defined by a curve.
Project description
See https://kivy-garden.github.io/collider/ for the rendered collider docs.
Please see the garden instructions for how to use kivy garden flowers.
Collider
See http://kivy-garden.github.io/garden.collider/index.html for html docs.
The collider module contains classes which can be used to test membership of a point in some space. See individual class documentation for details.
For example, using the Collide2DPoly class we can test whether points fall within a general polygon, e.g. a simple triangle::
>>> collider = Collide2DPoly([10., 10., 20., 30., 30., 10.],\
cache=True)
>>> (0.0, 0.0) in collider
False
>>> (20.0, 20.0) in collider
True
Install
To install with pip::
pip install kivy_garden.collider
To build or re-build locally::
PYTHONPATH=.:$PYTHONPATH python setup.py build_ext --inplace
Or to install as editable (package is installed, but can be edited in its original location)::
pip install -e .
CI
Every push or pull request run the GitHub Action CI. It tests the code on various OS and also generates wheels that can be released on PyPI upon a tag. Docs are also generated and uploaded to the repo as well as artifacts of the CI.
TODO
- add your code
Contributing
Check out our contribution guide and feel free to improve the flower.
License
This software is released under the terms of the MIT License. Please see the LICENSE.txt file.
How to release
- update
__version__
inkivy-garden/collider/__init__.py
to the latest version. - update
CHANGELOG.md
and commit the changes - call
git tag -a x.y.z -m "Tagging version x.y.z"
- for each python version you want to release call
python setup.py bdist_wheel
, which generates the wheels. Call oncepython setup.py sdist
to generate the sdist. They are saved in the dist/* directory - Make sure the dist directory contains the files to be uploaded to pypi and call
twine check dist/*
- then call
twine upload dist/*
to upload to pypi. - call
git push origin master --tags
to push the latest changes and the tags to github.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for kivy_garden.collider-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6efbce16846739c41243f5518223d0377c35ea43d5496ad909567f922c2e01e9 |
|
MD5 | f7fdb24e2c736fc1d3efc8cabf6c3565 |
|
BLAKE2b-256 | e2627950324c52dccff435fe89cf37c2876755690382ec6b851abeb77bfffe71 |
Hashes for kivy_garden.collider-0.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406cf65292af40a0a038a157b3060e8c21de6ccf1cc82d23b01269958d12e6a2 |
|
MD5 | e0a4769268ba2f691a4b17faf505cc4d |
|
BLAKE2b-256 | f6b61a10f4db7a06ff0eb156b3d6a9b5f3acc4c945b3146d8ac05e20c3a2d576 |
Hashes for kivy_garden.collider-0.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ed2f3becdae8976d3cd1063e6813d6887e875b30c0279fd5c905de53f6bd64 |
|
MD5 | 9e772d3ee4550345bed10b84440a9ad6 |
|
BLAKE2b-256 | 4c30b70be0b55ae4959e468e137c83790c2fe0b1947a310bf0862303820f724e |
Hashes for kivy_garden.collider-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac010bf0c8bbe8965112d93dc3326bf150065c3d89475a22b251229d4deaff6 |
|
MD5 | 64628372af40b26a16c5c634cee3abe9 |
|
BLAKE2b-256 | 3a20dd5d278138b21d192ed8eaa033a72da2c27fd40dc6135469283689e051d2 |
Hashes for kivy_garden.collider-0.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ce1340f057e566f21a25ce62719d51ad1444808b14c49fbe2aa02c797c2f99 |
|
MD5 | 4923bcf936670a1ffbdabb06c45c4bf2 |
|
BLAKE2b-256 | b3cb49a3740de1de761c1ecbf2e3e077e17934ed707dfd6cf182d4e5d80c0285 |
Hashes for kivy_garden.collider-0.1.1-cp38-cp38-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefa8773f539449ce56e481b094b01fe6ab46668c80b88c3409713d4c331d4a0 |
|
MD5 | f70ef69ad2423294d8fb016121782d95 |
|
BLAKE2b-256 | 68106eaebd7dc156bcdd577ad3509517a1474aefb35d680378bbd77a525eda95 |
Hashes for kivy_garden.collider-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a48d037671a95da6efdee9ccc5cb61161305d0cf358d40de07704846346bb3 |
|
MD5 | a438eb72efb99804af32257d92ea630f |
|
BLAKE2b-256 | d1cc675b231c8fbd1b50ff4d2225d78d553f45be71e5d80e745be26dd11a34ba |
Hashes for kivy_garden.collider-0.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583e36290656030910a9a61b70135973be909b20848a9f31175aebf77c005366 |
|
MD5 | 1d176da643647f0a3d09cbc4cb291053 |
|
BLAKE2b-256 | 8143cabb24dff12e300af5faa06237a3c6502119eecd8be2ba1a6c35120c8a49 |
Hashes for kivy_garden.collider-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5209db33780c604ba30bad2f706a550c2f02e07f87c36487dcc50ac7f70f5190 |
|
MD5 | 155b5f4ad381966591834ad8b9ac6f78 |
|
BLAKE2b-256 | e4571ddb001ccd6e93941d03dab470ca84c5465d5ba44dd24f9defaf00937902 |
Hashes for kivy_garden.collider-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9df4cc87997202f3e4f120965bad0fa326cc086f4ff78a63f1281bc833ffd9 |
|
MD5 | 3f234d4928faf5ed4f0f1971178eafc1 |
|
BLAKE2b-256 | aaa1a786059307238f21091631ba0a969d3c3f7e661d04dc27677b556885e70a |
Hashes for kivy_garden.collider-0.1.1-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07613a919e4651158481c3f13978872ccfab6f5628a1e00e4035512ae6be4c6e |
|
MD5 | a9de1a43b2bb248abd63b3ce52b68227 |
|
BLAKE2b-256 | c8391af2cad11aa88805d19e6ab5b4e5391c9145a627d9e12dc11308a52051b8 |
Hashes for kivy_garden.collider-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a59c807ba245afaa7ee2fa640d92190fcf871bd64374146038a67df8e64328b |
|
MD5 | 1a87762fca222947c5011ef4b6c3a860 |
|
BLAKE2b-256 | 32f7ce72ee00698ef0b49bace3a370a3746f0c977a523af34b517847128f2e13 |
Hashes for kivy_garden.collider-0.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 952e481b234ea581730f2005fa75f9adcafe45a6ea72b74b0f2cd536900af070 |
|
MD5 | 1685254d63aa77ab81d9219b9af2d0e2 |
|
BLAKE2b-256 | 95365efd14984298efe77c466754b1faf900683b40f80c7de590572df199bffa |
Hashes for kivy_garden.collider-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbb91535fbadbd991d434e818ad2eb192bcafc5728646d3b74bb56d288ba310 |
|
MD5 | 78610ab68c2bf3d916dd456618ec9e3c |
|
BLAKE2b-256 | 2c49b105b257b025ee067c60c32621d3250cb00bde51520882a7bc7c1609911b |
Hashes for kivy_garden.collider-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac9fe51996f033c60efdb084f7af962b72f3abb7633651a489f59dcdcc057adf |
|
MD5 | 1b489ee932ecd6b128cd1869d78ec593 |
|
BLAKE2b-256 | c6a2fd210a9c629f917ad65ae4a0202e85d691c92a311bb16886ed6417fc9b7b |
Hashes for kivy_garden.collider-0.1.1-cp36-cp36m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f636fd63a34d58cda63ded5c5a365ed8f9801b7237068b846271885ef825a1a |
|
MD5 | 2f385b0d20ea307177901508f1b9e68b |
|
BLAKE2b-256 | 876cba9e143bf2a3ce329e8b597b6fc12c18d63dcf6cf8d3718556318ce7c5d3 |
Hashes for kivy_garden.collider-0.1.1-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 816e918e7e178a42b056c07cf775d07cf4ee0dc59632eb435b0c5cd410342c93 |
|
MD5 | 9a395732449a2b5cc752cb266dda56fa |
|
BLAKE2b-256 | 7e7a43fabff3be9e35efae191fb1a185fad28dfeeb98de1a323ef0e4686080c8 |
Hashes for kivy_garden.collider-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3703b5a3d4c9efeb2f64e5f2467719ac86a1ce23ed35a8cd2c1a501c9ca334 |
|
MD5 | 63a929a88d6a483cc3de1de85ca9e26f |
|
BLAKE2b-256 | a3af32c57d8253757440e7e468e4b59ce4080cb5baa804b6ccc15457dc19834e |
Hashes for kivy_garden.collider-0.1.1-cp35-cp35m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7598f5cf930acc0b81c042b78faf6d146bc65b32d1b002d82f6f935726a0a822 |
|
MD5 | 61282ba6da11d715aee4cfe3d3322828 |
|
BLAKE2b-256 | 9681cce8c5b111187c176e61cebf8121e977c1102a60e3c9ff507b80b4c2420c |