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 hashes)
Built Distribution
Close
Hashes for SimpleVectors-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0358546573427feaeb94996c0c889e70501e8c1a1c85471a49887af9f4ba7269 |
|
MD5 | 0fbc1558cf1628580a8276b9991d2350 |
|
BLAKE2b-256 | 6862bf8a78cde47ea3be6b56e0625e4b654a74d64d58c59543f4da231206c904 |