Metadata-Version: 2.1
Name: vec3d
Version: 0.2.4
Summary: Maths and graph functions for vectors in the 3D space
Home-page: https://github.com/sergiofgonzalez/vec3d
License: MIT
Author: Sergio F. Gonzalez
Author-email: sergio.f.gonzalez@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: matplotlib (>=3.8.2,<4.0.0)
Requires-Dist: numpy (>=1.26.3,<2.0.0)
Project-URL: Repository, https://github.com/sergiofgonzalez/vec3d
Description-Content-Type: text/markdown

# Vector3D library
> Helper library with Math and graphing related functions for vectors in the 3D space

## Usage

Install the library by typing:

```bash
python -m pip install vec3d
```

Once installed, you'll have access to the Maths and graphing package:

```python
from vec3d.graph import (
    Arrow3D,
    Colors3D,
    Points3D,
    draw3d,
)

from vec3d.math import cross, subtract

u = (3, -2, 2)
v = (2, 4, 3)

draw3d(
    Arrow3D(u, color=Colors3D.RED),
    Arrow3D(v, color=Colors3D.CYAN),
    Arrow3D(cross(u, v), color=Colors3D.PURPLE),
    Points3D(u, color=Colors3D.RED),
    Points3D(v, color=Colors3D.CYAN),
    Points3D(cross(u, v), color=Colors3D.PURPLE),
    elev=15
)
```

## See Also

See also [vec2d](https://pypi.org/project/vec2d/) for a similar library for vectors on the 2D plane.


## Acknowledgements

This library is a small refactoring of https://github.com/orlandpm/Math-for-Programmers library.

