PyrusGeom
Geom2D | Soccer Math
PyrusGeom is a Python library for dealing with math and geometry in SS2D.
Installation
Use pip or build to install PyrusGeom.
x.x.x = release version
test pypi release:
pip install -i https://test.pypi.org/simple/ pyrusgeom==x.x.x
pypi release:
pip install pyrusgeom==x.x.x
download and use the released tar file:
python -m pip install pyrusgeom-x.x.x.tar.gz
or use the git repository
git clone https://github.com/Cyrus2D/PyrusGeom.git
python -m build
python -m pip install dist/pyrusgeom-x.x.x.tar.gz
Usage
for importing you can use this options
import the desired class
from pyrusgeom.vector_2d import Vector2D # for Vector2D
from pyrusgeom.polygon_2d import Polygon2D # for Polygon2D
Or use a Wildcard import like
from pyrusgeom.soccer_math import *
from pyrusgeom.geom_2d import *
Examples
vec_1 = Vector2D() # create Vector with default value.
vec_2 = Vector2D(20,30) # create Vector with 20 , 30 value directly.
line_1 = Line2D(vec1,vec2) # create line from 2 points.
circle_1 = Circle2D(3,3,5) # create circle with center point and radius value.
print(circle_1.intersection(line_1)) # calculate the intersection with straight line.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
TODO
triangulation | delaunay_triangulation | composite_region_2d | voronoi_diagram | circluar import | remaining eq,hash,reverse | etc
Metadata
Release files for pyrusgeom 0.1.2
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 |
|---|---|---|---|---|
| pyrusgeom-0.1.2.tar.gz | 52.4 kB | Without provenance | Details for pyrusgeom-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrusgeom-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyrusgeom-0.1.2-py3-none-any.whl |
Total release size: 106.2 kB
Release files / pyrusgeom-0.1.2.tar.gz
| Download URL | pyrusgeom-0.1.2.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a4d389fcc7bbd7cd1a9a80b87bd3bd003491ed0ac9fc895c712d1a7849990a6
|
|
BLAKE2b-256 checksum How to use checksums |
b2ccd4e1d2f5d443193e55a1865f6226d050e3e68877fd9404e62a911619ca38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Release files / pyrusgeom-0.1.2-py3-none-any.whl
| Download URL | pyrusgeom-0.1.2-py3-none-any.whl |
|---|---|
| Size | 53.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3379b0bced81de98aae795ecc412ebfabbccac67f4073f597f8429c5f8969840
|
|
BLAKE2b-256 checksum How to use checksums |
5ed9b1b65950a3ba27214b4059724dfb5939713c13f55d99183f42506ba027a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Security for pyrusgeom 0.1.2
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.