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:
    veclist

    Vector a

    Returns:
    veclist

    Vector

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.