gaitmap.utils.vector_math: Helper functions to deal with mathematical Vectors#

A set of helper functions to handle common vector operations.

Wherever possible, these functions are designed to handle multiple vectors at the same time to perform efficient computations.

Functions#

is_almost_parallel_or_antiparallel(v1, v2[, ...])

Check if two vectors are either parallel or antiparallel.

normalize(v)

Simply normalize a vector.

find_random_orthogonal(v)

Find a unitvector in the orthogonal plane to v.

find_orthogonal(v1, v2)

Return an orthogonal vector to 2 vectors.