PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • angle
          • angle()
    • angle
      • angle()
    Source

    angle¶

    porems.geometry.angle(vec_a, vec_b, is_deg=True)¶

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

    \[\text{angle}=\cos^{-1}\frac{\boldsymbol{a}\cdot\boldsymbol{b}} {|\boldsymbol{a}||\boldsymbol{a}|}\]
    Parameters:
    vec_alist

    First vector \(\boldsymbol{a}\)

    vec_blist

    Second vector \(\boldsymbol{b}\)

    is_degbool, optional

    True if the output should be in degree

    Returns:
    anglefloat

    Angle

    Back to top

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