/vectors

Python module for dealing with three-dimensional vectors.

Primary LanguagePythonMIT LicenseMIT

vectors

Python module for dealing with three-dimensional vectors.

Create a vector

vector = Vector(1, 2, 3)

Perform mutable operations

vector.mul(4)

Perform immutable operations

vector = Vector.copy(vector).mul(4)

Find the dot product

dot = Vector.dot(vector_1, vector_2)

Find the cross product

cross = Vector.cross(vector_1, vector_2)