This is an open-source Python library for performing operations with vectors in 3-dimensional space. The library provides functions for defining vectors, performing arithmetic operations with vectors (addition, subtraction, scalar multiplication), and computing the dot product and cross product of two vectors.
To use this library, you can clone the repository from GitHub:
bash git clone https://github.com/username/analytic-vectorial-geometry.git
To use the library in your own Python code, you can import the Vector module:
from Vector import Vector
v1 = Vector(1, 2, 3)
v2 = Vector(4, 5, 6)
v3 = v1 + v2
v4 = v1 - v2
v5 = v1 * 2
dot_product = v1.dot(v2)
v6 = v1.cross(v2)
This repository also includes a test suite for the Vector module. To run the tests, you can use the following command:
Tests.py
The tests include checks for addition, subtraction, scalar multiplication, dot product, and cross product operations. The test suite also includes 3D plots of the vectors, which can be used to visually verify the results of the operations.
Contributions to this library are welcome. To contribute, please fork the repository and submit a pull request with your changes. Be sure to include tests for any new functionality you add.
This library is licensed under the MIT License. See the LICENSE file for details.