Python Package for playing with Simple Vectors passing through a point
Project description
SimpleVectors
Very easy to use module which provides functions to add vectors using their magnitude and direction (angle) w.r.t x-axis. All the vectors which will be added are assumed to be passing through the same line
Usage Example
from simplevectors import simplevector, addvectors
#Create vectors using their magnitude and their angle w.r.t x axis in degrees
vector1 = simplevector(10, 0)
vector2 = simplevector(10, 90)
resultant_vector = addvectors(vector1, vector2)
print("Resultant Vector Magnitude: {}, Direction: {}".format(resultant_vector.magnitude, resultant_vector.direction))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SimpleVectors-0.0.5.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SimpleVectors-0.0.5.tar.gz.
File metadata
- Download URL: SimpleVectors-0.0.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98de0b34ca18de96bbff3489e8638d01a941878457efda2b163df2cac24e7509
|
|
| MD5 |
c852b069115a7a2697530c95651369c7
|
|
| BLAKE2b-256 |
bac9e45fb962b9914ab64d2bc13e3fcd6fe58d3b7e18ec6327aa2cd5b94f8c3c
|
File details
Details for the file SimpleVectors-0.0.5-py3-none-any.whl.
File metadata
- Download URL: SimpleVectors-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0358546573427feaeb94996c0c889e70501e8c1a1c85471a49887af9f4ba7269
|
|
| MD5 |
0fbc1558cf1628580a8276b9991d2350
|
|
| BLAKE2b-256 |
6862bf8a78cde47ea3be6b56e0625e4b654a74d64d58c59543f4da231206c904
|