PoreMS
0.3
API
Molecule
Pore
Workflow
Pore shape examples
Site
Page
length
length()
length
length()
Source
length
¶
porems.geometry.
length
(
vec
)
¶
Calculate the length of a vector
\(\boldsymbol{a}\in\mathbb{R}^n\)
\[\text{length}(\boldsymbol{a})=|\boldsymbol{a}| =\sqrt{\boldsymbol{a}\cdot\boldsymbol{a}}\]
Parameters
:
vec
list
Vector a
Returns
:
length
float
Vector length