Skip to main content

Collides a point with a space defined by a curve.

Project description

Coverage Status Github Build Status

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__ in kivy-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 once python 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

kivy_garden.collider-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distributions

kivy_garden.collider-0.1.0-cp38-cp38-win_amd64.whl (48.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

kivy_garden.collider-0.1.0-cp38-cp38-win32.whl (41.2 kB view details)

Uploaded CPython 3.8 Windows x86

kivy_garden.collider-0.1.0-cp38-cp38-manylinux2010_x86_64.whl (211.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

kivy_garden.collider-0.1.0-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 (48.2 kB view details)

Uploaded CPython 3.8 macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.collider-0.1.0-cp37-cp37m-win_amd64.whl (47.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

kivy_garden.collider-0.1.0-cp37-cp37m-win32.whl (40.3 kB view details)

Uploaded CPython 3.7m Windows x86

kivy_garden.collider-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl (189.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

kivy_garden.collider-0.1.0-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 (47.6 kB view details)

Uploaded CPython 3.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.collider-0.1.0-cp36-cp36m-win_amd64.whl (52.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

kivy_garden.collider-0.1.0-cp36-cp36m-win32.whl (45.6 kB view details)

Uploaded CPython 3.6m Windows x86

kivy_garden.collider-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl (190.1 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

kivy_garden.collider-0.1.0-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 (48.8 kB view details)

Uploaded CPython 3.6m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.collider-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl (185.4 kB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

kivy_garden.collider-0.1.0-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 (47.2 kB view details)

Uploaded CPython 3.5m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

File details

Details for the file kivy_garden.collider-0.1.0.tar.gz.

File metadata

  • Download URL: kivy_garden.collider-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0.tar.gz
Algorithm Hash digest
SHA256 801f4636174fa32ca566373e0a2252fd6940960ff91d07ae3987b76f543746af
MD5 22c8f1fca974df19a2dfc2fae354a35f
BLAKE2b-256 f3d1048e1e18d16502e939111f9c0dad35c3be2c73108b491e72345e2a98aa14

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 48.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 acf93842156e3994aed9fde673b9bd843870fa607eca6b1aa9f834ec9fe75538
MD5 43fbf7d7d82151cd6aa768cff5f7a6ca
BLAKE2b-256 746133d13eb38ba33ef4fb2bbe1460c6fe346cba9996fab2389458c4a24ceddf

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 53cdf7a1f83243145645e0675c6190c2f0ab5c4d50656f2e1760e9e6565cf904
MD5 54d8dfa523445d8bf421d0f2c6a0e8f2
BLAKE2b-256 482d851d8708864550a7358b9904931af1a1b90efccdff848290e96682325bfd

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 211.0 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 19fa4dfae38080c8320fc3c5ddde2d20e43cbb96cd31e6c641d49b0c01e18c07
MD5 2191ce0ce081ff2108260f26f402adb3
BLAKE2b-256 b8c8fa39d0867ce5d51ff33baecdc1b4002bbc8322ed2daaa395732b3e4aef59

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cfee55bd2737a997c1b4083a2d3733ab1eb274fd8904badf356e23c471b77ed3
MD5 5d3eb4540b88786b4e6e5667cb48f330
BLAKE2b-256 1cb2b641a92a382813156fb59f8706f05446129136fc5a63e6e23ae9db2773dd

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-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.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-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 439f512cb83c2fe7c719d4e7c6fcc7143136fc59a7e046c85f67e3e9dd867e38
MD5 68a1e70c46cc13c3a9e49a7f5cc8b20a
BLAKE2b-256 2f8c5a7eabc29f800a8697fe1b81538c7473362aaba251a117d72a56eea1b942

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1fad0d663234840fd3f4ecc297013e514b310791944fc0f97592c64539a156d6
MD5 4c8702fd13c61634514a0f60d77c882a
BLAKE2b-256 5bb988687c7cf29127314ad530798f2d668c4231124a714a3903ee579e51baf6

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp37-cp37m-win32.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 7015f64f34065d836821be9d86b2c0750fa19a9da78c703dc488b8b6d736c086
MD5 9cfee03bfd4ab4ba3538554cac71d546
BLAKE2b-256 709386532f221fcd0c1710b95f22cc078d908223fc1ac720a9051e3cf1b62dbf

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 189.0 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2974294bbacb7c5b997d37e241f3506f873224d25c8fe2324853a4656fc68141
MD5 0d21f78bcce7e7fd25ac644f393543bc
BLAKE2b-256 f17b9a0b6ea97606dcba2c57993e0941f8a29e7517c26c31227d18660b812fa8

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 030b4101af3292942f339caf8fa2ed00d7da33d2025837ccb2246be9972d4819
MD5 8420cd9877350d95a1ddd28042c85e46
BLAKE2b-256 3b436f97fb398a5d9b61db05fc58d9defc81d4d8c91cf76e0a86e8793d5b248c

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-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.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-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 d79473d2a2fc5d78b7c4a030811d3504da018ae6ca798694eea47756fe0b6b60
MD5 60a7835b62eae1e2f639ef69f01de372
BLAKE2b-256 a4f58732e0c99c4c003666b717152275bd62908bdfaef24e61206289c50162c9

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f601c0d545b8bf38d52b7d7b9ed5683771bf06c599d76b72eb9797ffc24aeec1
MD5 870ecf6328989ed4f682781b1c8671e3
BLAKE2b-256 c1e865e0672fd6b90118a8b82b547a42ac218ad5f91c97b19a6c8ef675feb793

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp36-cp36m-win32.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 45.6 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 97a941d6411ccb994d68eab560cb3ed9e0b33ba60dc5b3872517557599fecd17
MD5 8432a039090c97b81d7bd6c18790124e
BLAKE2b-256 0340a0ca5386f041dafb925e8b1de9e2a36ad3e1af85d4e7b2caa2bea9a535f0

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 190.1 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0c905380a2eb1f827a94d9488c36ee8577512b901ee8d326ae7f1728d2536e62
MD5 e817142b2cd7c0d0a978ba2d1a68c0a2
BLAKE2b-256 792da19fb21aeb6979d543b4358a781aea2769e622b00dc984444cbb67e8552e

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bf95c54f20b22e0cda84f5c6ed1b320ac6f37d25a497e5713c044b19e6953da2
MD5 ad3b9db3d15bf81f4753459d270f867a
BLAKE2b-256 11566d3c0ef14ad507be9fcf3d529b8fe35a2d24c6a3feaf4000d20d0af27752

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-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.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-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 3d35bac6462703d39a779b6d76f71431a2306f6a822ae230b8f0fbe22ac0eb43
MD5 33f2330c0afad60fa02712edba7aaaef
BLAKE2b-256 fe3e11490fe1f8dd817542a91011325fa976cacb9900f959694de44888df04fc

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.collider-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 185.4 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.collider-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 055cd592d21401587401f7d3180363d8f9f2de2c8d6c7028ae63d84318271e2b
MD5 7eef0a19ce6016fb59d4e383248d09f3
BLAKE2b-256 9426f506c30ea6dc894267aada64bf34ef3b7d4f4925a5fb5de8f1bda5f3a69c

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a1728dffd6cf7905a27cd55b28d359e3b20616a5c3d2527f17e7ef3d241695d6
MD5 51df59092426935ad1b15f63bf7d8183
BLAKE2b-256 4984a0562d8cd18a9eab612975791e71ed1dc644f23c619248aeca2efeee0155

See more details on using hashes here.

File details

Details for the file kivy_garden.collider-0.1.0-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.

File metadata

File hashes

Hashes for kivy_garden.collider-0.1.0-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 a1288eac6d302e253e4105e18892334f6c4c9d21fca3113fb6aeafd613fe7fe2
MD5 bf2b1f77bfcd09586dc3bba5a6b82abc
BLAKE2b-256 b7f655d9c6ab30ddf33caa6cadb3f2b64591404226db0136dcde033b86d3e44f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page