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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a22f5c0d16562e3485b2ee5315ae0d1cac85edbcda08e761b0296434a3b7b75 |
|
MD5 | 7ab5d5bf639085c4c5474f0c9a9700e5 |
|
BLAKE2b-256 | 714cc190a29571071d6cb5871342a55261a2e6907e7c804d2b1a8680cabe1291 |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a6a904f73bd9993bbe0669d57fc2d8b4b752d6eccf4d3268926dc8ab6b4e56 |
|
MD5 | 98ec7b0567e6418a5177b5bbc08fa515 |
|
BLAKE2b-256 | ef32548a7bddef1a968c46bf9dcff2973d54ecdac4d02ceb33c633d5492e556d |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02514beb23cc35189b97b5c5132e9ade8476398e42c43e12d1dd9ea31f35180a |
|
MD5 | bed6885ce7e27e6c041af9dd21c7e77f |
|
BLAKE2b-256 | 322c236d7fc16515033eb1944c2a2b0bcc3324d2bb04de4190b2d9dda70f8d66 |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2078eec094339c2f9aebdaeb927f23cd7414588700cc5023f315d521eb0aa544 |
|
MD5 | fe8555ff5fa79299667f546d40d3bd6b |
|
BLAKE2b-256 | 8c9fceaa81863c8d0b875a6ff07ead87de57a92fd3b144bf2bb17c804cb2c249 |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11aa6c5c11a54332480d82867bdb8b81b9abd357b9608595c37b02a6a6324319 |
|
MD5 | 4035aba923663bc8f359d5f75c73dd06 |
|
BLAKE2b-256 | e4b11c62aab97c5f0b90a9deda714ebd6ab8db9f200b1ef6a592cd21d121ce8d |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9b874d8c67fa4169e55bc3f2beb53e7c496f8aa83e0a138342489074323c266 |
|
MD5 | 57f5818d36ce7df84ba9552f906868cb |
|
BLAKE2b-256 | fee5aad76c2a2ebaa60f467f4b69363189a5630a3df4234680ad0dbd1c0b0607 |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d62feaa2ab1f2066a97cb7231f899a8647d95673a64141f6e4743f2646397c |
|
MD5 | e74e633f251977e1abf2c034875e3087 |
|
BLAKE2b-256 | 7d096d74ce029d5ab88a773007cdc274e0faefe6b19a61dd5c39f719f4d60bb4 |
Hashes for kivy_garden.collider-0.1.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c94cb0a57546f38b36036436dd2dcbcb8501b5989336a3862e4d303e517ea989 |
|
MD5 | 1069a61118cf8a57b15f61d74e97d9d4 |
|
BLAKE2b-256 | f91788778bbf4306765e6a8b836658607f35c120e016eac825ed3ec21f966bdd |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb2b37f7a043b4f7fbf801df42929e97e3f32a7b5098fba2993ce80de01743b |
|
MD5 | 99bba244133e6e9839e11791f7836ec2 |
|
BLAKE2b-256 | 19af5b3a1292e5989165ab2829c27be64448a01f901ea4152f684ce47d5fc48c |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7159805ccaa8721adcbc88ac248e60a27daca392264e3f12398a5e11ba5bd83 |
|
MD5 | 497cc0ee68118361d6ccb06cd402bfc0 |
|
BLAKE2b-256 | 7161c33f1ee3b0c649eb4e46a881300a5e9b42f44bbc74e1c47abd492ae7fc3b |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362b3efcc2389930fe2e361f02811318912b2c75ef9c21a7cde98a490f36f175 |
|
MD5 | 9ad916ee7c23d867d5651808532f0127 |
|
BLAKE2b-256 | 0cee55c4877e06b3bbb6e05cbc568db099271c1aad35acda18e3f7ed5699fec0 |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7bb13d1d3f4c708b1289a7a9d451c1f66530a154ee3f721853da67fd601943 |
|
MD5 | 85ad41acc652c1e553c2bf9cdfa6978f |
|
BLAKE2b-256 | db1cae07485b0e1639083fba4f669fb5de88686f843faa94dd8283c3a0b9936f |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b78691c201af7a21f236211ea10173b8f681bc6a64e9dd5c212e4c61154915 |
|
MD5 | 4316ca40c70780bd81bdb37e40a066ea |
|
BLAKE2b-256 | 9cb32542b1e86013c8337642f417dbdd4f53eb4586bbf5aebf5f2da5f146988e |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 772a044ec067f5c3208660a37aed7434310525bd1281f7257123612e5a3bbb26 |
|
MD5 | 8324d1c718b84a1e760424e380774a82 |
|
BLAKE2b-256 | 9b7f381ee2585c8ac6a27ceb6dd6cf8a1d5027c1367485ce6a37454aac79ec42 |
Hashes for kivy_garden.collider-0.1.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b80127ff8128a839dbdbdcd45c9b7e76f7dfd833a890c2de76b4a403d476a7 |
|
MD5 | 7c5270a4e4669e26c974a325b1f2e652 |
|
BLAKE2b-256 | 278e3d556a49e5c78827b3a55182ccbc413fde49afdc9a6ec5a99472ddbfadfd |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2febe56b734abed2a9a7a865ddf4fcb2dcd5bd0c567c1efa9c7af225597c608 |
|
MD5 | 038e11450593fa9fcb2dafe533fc3b1a |
|
BLAKE2b-256 | 881d3afccf10a85b81c765c96a35b10d26e890892f78ac5e01ed32eae779ac71 |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df36d1c9cb5da1942f514e5f3ac5733aa54baa8f2a2125e8a0e97369d7c2da51 |
|
MD5 | 64e70981a495b37c10a31e573e6a0cd3 |
|
BLAKE2b-256 | e645f2724e27ee602bc4e9809c3e3b346404cc87f53cbd20340360e4a16f50f2 |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ba768355a1328770daba9046adc4877d3eacc3007e972bcdfce8a2310ac832 |
|
MD5 | c6211ad0a484fd0d41c948d451df1f1a |
|
BLAKE2b-256 | 7577c2606045cd193be05dff2e78d59f9d01401c35451d8b30f33cc5e8aa3dcc |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6408b0a4ad71e0cfd5decdb25903a5f8b1065e43b02b260e86fc4fc352f9bfe |
|
MD5 | 9b49b9aacb4ae76ac5a069ae89f3ee92 |
|
BLAKE2b-256 | 61b030fd6a5df41afec81f877ca7478be25e9066259b88fe19fa6f8b8725fa14 |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6de55b2b425e761f90f3bba1fc52f66e9fc3a1189b3dee5102f3700d5cdf7993 |
|
MD5 | 5e7ccb33c35daa60b430b488ec3aebd9 |
|
BLAKE2b-256 | e6b10b8d459c4bc4a96da6a996e277dddb46ec7d627b7cb162931ceb3e4a8519 |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd813ce9671029b58adf88d654018cb286238081f955491b5a580c101d455f9 |
|
MD5 | dbc21d17c118871fbf011800c91887fa |
|
BLAKE2b-256 | 3531dd475c98e6b171205261c3d49a961d6e57ac82eb6b6b30e0ebab311510eb |
Hashes for kivy_garden.collider-0.1.3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2864dd9e7c8955dfafa6be761834e1add255e27ae05e657970bb30402e4dccd |
|
MD5 | 04910561c98ce659ee78a7bfae91e133 |
|
BLAKE2b-256 | 02dd0aa93f58419b2f92eb79c52c78711c44f51f02c420237ae96e4c3c3b291c |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 548aae264eb57e1bbdadec0f145c3e351f0d5a7a3dd42c95c4a08c8927c66867 |
|
MD5 | b4dd66922a76ac6fd1053d0544622b8a |
|
BLAKE2b-256 | cd73f87d835fe3ebf976b90a802480bf1bbb6d5116932e9e9174ab54031352b5 |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 930c444e17d65cd9fdf572de812b9adf7a9e5efc50d2014a9da4520bcc6bf2d5 |
|
MD5 | b69e7f0ea8396d6858b97160e62af4bd |
|
BLAKE2b-256 | f081c529fb24bfdd4d46048b90976c19737aa9e564137287dad4895dd7982147 |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f423ced63d03a0472e28b286b926e9b207fcad3bf52746abeee9766696ea67c |
|
MD5 | cd1c31d27ae01dbb9c8dfb8101266f9a |
|
BLAKE2b-256 | 42f5bdd1b74b07e901b74bc1213cf06a12bc0c303010c81e5d42bf4163509f40 |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b3408a9c3722bee423aaeefced30c77ab90a40c822aac582bd7a89f42a01e06 |
|
MD5 | f06a58aacfd4840e6ab2e32aee381552 |
|
BLAKE2b-256 | 50d4344fc59ed33501826b7ab666e7e35ed4e5024e65e0aeb045dc47bf489a2a |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfa56512fee6dde064b18644f4ffb9d068ff5134da5e96c9d1953f48528c79a2 |
|
MD5 | 601cd77c561d82ce4668fde18a468b4b |
|
BLAKE2b-256 | c0f40a2b75fb9202b3c256b171fb1baf689fe567b48cf9ece40975096963c222 |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0fd97da539c0b4b92d45e5df70b2851711861bb246cb806b6531e4ce2413c8 |
|
MD5 | 6fa358e4eb85f3a0c9f27e1827f47014 |
|
BLAKE2b-256 | 4e11ef8db801ad048000f2c07f740f4de375cd6927dd80183d93d72f436db8ac |
Hashes for kivy_garden.collider-0.1.3-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5378184051e2456ff8af67b8e0b757cc9d3f182308280687799f352b7faddf8 |
|
MD5 | 36182addcc2d15cc0a35528374cd1ddc |
|
BLAKE2b-256 | 7665e34db1874f5cb5c66cdaa2c606a52f9e1fa482aa99a3594adf45e1b502fd |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59b7f87ff058487c3afc17274fe2577c3d0ade86b5eefb3d3c98601d602c040 |
|
MD5 | 14d6f5291db11559a3f036a3a6934fbc |
|
BLAKE2b-256 | ff7688a0b417f65d2bf616b6faac8f40faee49f525b7fa4b22dc1ed2bf0c87c1 |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f17450e97f181890e564883a3517dd6a72f6d4d8a8aafe3d6d7601d340a3fd |
|
MD5 | ac61b07379f57eeed46ffbd6731d17b4 |
|
BLAKE2b-256 | d4c6e051c6dc743d45ec7b0d5618e66f33a8abe1991a91a6b15f05085abdfa48 |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa6a1b0cf56d92f58a813c99f262f833c226d53a5810a40f5ed5d454c5223d17 |
|
MD5 | e3db81609f8567b94c42caa96f980dc8 |
|
BLAKE2b-256 | cec52bbc8ee44ece895b57163cf98b36704f8acf703ed4eec8cc9067b86ecf27 |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1dd10cb2336f42eec449e65d048015b50e07193ebcb857a3a6a9fc4ad976844 |
|
MD5 | ac8413d8e7d573a5aa7f68b7f9507194 |
|
BLAKE2b-256 | 4ecde5866da7bfae8ed8cb94e3dc3726a62d4be331bd3d869ab98fa308ebf280 |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d103ace1dfff235e1bab4fdc9afe457e997d886fbaedee9608ca6af4e0c1145f |
|
MD5 | 6fb8a698b0f34244b44aaf439000767f |
|
BLAKE2b-256 | 6c35eb81ba125ddfc2d88ebd80cf759854f45c9045baf37727ece00c8cde575e |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c762e02ec0d378112b58d610be0c7e1be407f4114f90a2053cd21c48f32d89a |
|
MD5 | ef3c82c98a7dbee1befdc7efd28ba2c0 |
|
BLAKE2b-256 | 6c749c4b926a44f9b1eed438ee90aebf0034faf7ebb987f5d33cc5440c613a26 |
Hashes for kivy_garden.collider-0.1.3-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ff557befbf1b2d9c8169b31d14de86cca0cf325c3e77dc6fda830817578792 |
|
MD5 | f3127207f1c81ec43561ae09e469dfbf |
|
BLAKE2b-256 | 8f645e69f42ea2a55195d3eee699a30abe914452bb2a7cfb2fa303679f779260 |