Metadata-Version: 2.1
Name: hyperspherical
Version: 0.1.0
Summary: A package for converting between Cartesian and hyper-spherical (n-sphere) coordinates
Home-page: https://github.com/kiasar/hyperspherical
Author: Peyman M. Kiasari
Author-email: "Peyman M. Kiasari" <pmkiasari@gmail.com>
Project-URL: Homepage, https://github.com/kiasar/hyperspherical
Keywords: coordinates,cartesian,spherical,conversion
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: numpy

# Hyperspherical

Hyperspherical is a Python package for converting between Cartesian and hyper-spherical (n-sphere) coordinates in any number of dimensions.
It also works for 2D cartesian and polar coordinates.

## Installation

You can install Hyperspherical using pip:

```
pip install hyperspherical
```

## Usage

Here's a basic example of how to use Hyperspherical:

```python
import numpy as np
from hyperspherical import cartesian2spherical, spherical2cartesian

# Convert Cartesian to spherical
cartesian_points = np.array([[1, 1, 1], [0, 1, 0], [1, 0, 0]])
spherical_points = cartesian2spherical(cartesian_points)
print(spherical_points)

# Convert spherical to Cartesian
cartesian_points_back = spherical2cartesian(spherical_points)
print(cartesian_points_back)
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.
