symcrys
    Preparing search index...

    Function latticeFromParameters

    • The Cartesian basis of a cell as the columns of a 3×3 matrix, in the frame of this library for a general cell: a along x, b in the xy plane (y > 0 for γ < 180°), c towards +z. It is the frame of latticeBasis where that exists (hexagonal axes: x ∥ a, z ∥ c), so a cell with the angles of a family has that family's basis scaled by the edge lengths. For the monoclinic family with unique axis b, b lies along y (docs/conventions.md, "Cell, metric and indices"). The basis is right-handed. Throws a RangeError for an edge that is not positive and for angles that give no cell.

      Parameters

      Returns Mat3