porems.geometry¶
Here basic geometric functions are noted.
Functions
|
Calculate the angle between two vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\) |
|
Calculate the azimuthal angle of a position vector \(\boldsymbol{a}\in\mathbb{R}^3\), which is the angle of the position vector towards the x-y-plane |
|
Calculate the polar angle of a position vector \(\boldsymbol{a}\in\mathbb{R}^3\), which is the angle of the x-axis towards the reflected position vector on the x-y-plane |
|
Calculate the cross product of two three-dimensional vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^3\) |
|
Calculate the dot product of two vectors \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\) |
|
Calculate the length of a vector \(\boldsymbol{a}\in\mathbb{R}^n\) |
|
Return the three-dimensional unit-vector of the main axes. |
|
Rotate a vector \(\boldsymbol{a}\in\mathbb{R}^3\) along an axis \(\boldsymbol{b}\in\mathbb{R}^3\) with angle \(\alpha\in\mathbb{R}\). |
|
Transform a vector \(\boldsymbol{a}\in\mathbb{R}^n\) into a unit vector |
|
Calculate the vector between to two positions \(\boldsymbol{a},\boldsymbol{b}\in\mathbb{R}^n\) |