Skip to main content

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)

Uploaded Source

Built Distribution

SimpleVectors-0.0.5-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page