Skip to content

A vector python object (simple arithmetic and grapical representation)

Notifications You must be signed in to change notification settings

Daguhh/VectorObject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

from vecteur import get_vect_n_point_class
fig, ax = matplotlib.pyplot.subplots()
Point, Vect = get_vect_n_point_class(ax)

Run example

python3
import example

Help :

import vecteur
help(vecteur)

About

A vector python object (simple arithmetic and grapical representation)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages