poreana.geometry

Here basic geometric functions are noted.

Functions

angle(vec_a, vec_b[, is_deg])

Calculate the angle between two vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\)

cross_product(vec_a, vec_b)

Calculate the cross product of two three-dimensional vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^3\)

dot_product(vec_a, vec_b)

Calculate the dot product of two vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\)

length(vec)

Calculate the length of a vector \(\boldsymbol{a}\in\mathbb{R}^n\)

unit(vec)

Transform a vector \(\boldsymbol{a}\in\mathbb{R}^n\) into a unit vector

vector(pos_a, pos_b)

Calculate the vector between to two positions \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\)