cos202finalbycharawi is a Python library for dealing with points and vectors.
Installation
Use the package manager pip to install cos202finalbycharawi.
pip install cos202finalbycharawi
Usage
from cos202finalbycharawi import Vector
v1 = Vector(1,2)
v2 = Vector(3,4)
print(v1)
print(v2)
v1.euclideandistance(v2)
print(v1.lenght())
print(v1.unit())
print(v1.dotproduct(v2))
#print(v1.crossproduct(v2))
print(v1+v2)
print(v1-v2)
print(v1*v2)
print(v1/v2)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Release files for cos202finalbycharawi 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cos202finalbycharawi-0.0.3.tar.gz | 3.4 kB | Details |
Release files / cos202finalbycharawi-0.0.3.tar.gz
| Download URL | cos202finalbycharawi-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd2673b7ebaf0b436861579a9d131c12a260fd61d2d64a70196f0a77e123e89d
|
|
BLAKE2b-256 checksum How to use checksums |
242a16f76e0c7b8a331d0c145737000fbb287f3a4b907ab5b0d4ea1fffdd5393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|