https://github.com/daguhh/vectorobject
A vector python object (simple arithmetic and grapical representation)
https://github.com/daguhh/vectorobject
education matplotlib-pyplot python3 vector-math
Last synced: 6 months ago
JSON representation
A vector python object (simple arithmetic and grapical representation)
- Host: GitHub
- URL: https://github.com/daguhh/vectorobject
- Owner: Daguhh
- Created: 2020-04-09T12:04:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T13:18:36.000Z (almost 6 years ago)
- Last Synced: 2025-07-05T08:43:05.417Z (7 months ago)
- Topics: education, matplotlib-pyplot, python3, vector-math
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VectorObject
### Purpose
Draw and manipulation basic vectorial representation with python3 and matplotlib lib
just vecteur.py file is usefull, others are expermientals
### Functionalities
it implement two class:
- Point : a point (that's make sense, don't you think?)
- Vect : really? You don't get it?
you can toggle object display
and perform simple calculation like
- Vect + Vect => Vect
- Vect + Point => Point
- n*Vect => Vect
and others
### Usage
Module
```python
from vecteur import get_vect_n_point_class
fig, ax = matplotlib.pyplot.subplots()
Point, Vect = get_vect_n_point_class(ax)
```
Run example
```bash
python3
import example
```
Help :
```python
import vecteur
help(vecteur)
```