PoreMS
0.3
API
Molecule
Pore
Workflow
Pore shape examples
Site
Page
unit
unit()
unit
unit()
Source
unit
¶
porems.geometry.
unit
(
vec
)
¶
Transform a vector
\(\boldsymbol{a}\in\mathbb{R}^n\)
into a unit vector
\[\text{unit}(\boldsymbol{a}) =\frac{\boldsymbol{a}}{|\boldsymbol{a}|}\]
Parameters
:
vec
list
Vector a
Returns
:
vec
list
Vector