Metadata-Version: 2.1
Name: hyperbolic
Version: 2.0.0
Summary: A Python 3 library for constructing and drawing hyperbolic geometry
Home-page: https://github.com/cduck/hyperbolic
Download-URL: https://github.com/cduck/hyperbolic/archive/2.0.0.tar.gz
Author: Casey Duckering
License: UNKNOWN
Keywords: hyperbolic,geometry,draw,SVG
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: IPython
Classifier: Framework :: Jupyter
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: numpy
Requires-Dist: drawsvg (~=2.0)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3978772.svg)](https://doi.org/10.5281/zenodo.3978772)

# hyperbolic

This is a Python 3 library for generating hyperbolic geometry and drawing it with [drawsvg](https://github.com/cduck/drawsvg).  Currently the Poincaré disk and half-plane models are supported.

# Install
hyperbolic is available on PyPI:
```
$ python3 -m pip install hyperbolic
```

# Examples

See the Jupyter notebooks in [examples](https://github.com/cduck/hyperbolic/tree/master/examples):

- [Euclidean geometry](https://github.com/cduck/hyperbolic/blob/master/examples/euclid.ipynb)
- [Poincaré disk and plane](https://github.com/cduck/hyperbolic/blob/master/examples/poincare.ipynb)
- [Tiling the Poincaré disk and plane](https://github.com/cduck/hyperbolic/blob/master/examples/tiles.ipynb)
- [Tiling of isosceles triangles](https://github.com/cduck/hyperbolic/blob/master/examples/isosceles-tiling.ipynb)

Using this library, along with the drawsvg library, you can create art like this hyperbolic weave:

![Hyperbolic weave](https://github.com/cduck/hyperbolic/raw/master/examples/images/weave.png)

This weave is built from a tiling of [isosceles triangles](https://github.com/cduck/hyperbolic/blob/master/examples/isosceles-tiling.ipynb):

![Hyperbolic weave structure](https://github.com/cduck/hyperbolic/raw/master/examples/images/weaveStructure.png)


