PoreMS 0.2
  • API
  • Process
  • Molecule
  • Pore
  • Workflow
  • Site
    • Page
        • main_axis

    main_axis¶

    porems.geometry.main_axis(inp, dim=3)¶

    Return the three-dimensional unit-vector of the main axes. Input is either integer or string

    • 1 or “x” for the x-axis
    • 2 or “y” for the y-axis
    • 3 or “z” for the z-axis
    Parameters:
    inp : integer, string

    Axis type input

    dim : integer, optional

    Number of dimensions

    Returns:
    vec : list

    Unit vector

    Back to top

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