Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Data structures/Construction

Index

Miscellaneous

Const multiFamily

  • multiFamily(nodes: ConstructionNode<unknown>[], family: string, specialFactor: string, specialFactorModify: string, gender: Gender): string
  • Converts a set of ConstructionNodes into their prism product/tegum product/pyramid product's name.

    Example

    const triangle = new Polygon([3, 1]);
    const pentagram = new Polygon([5, 2]);
    
    //Triangular-pentagrammic duoprism.
    console.log(ConstructionNode.multiFamily(
        [triangle, pentagram],
        "family/multiprism",
        "shape/dyad",
        "shape/prism"
    ));

    Parameters

    • nodes: ConstructionNode<unknown>[]

      The array of nodes to convert.

    • family: string

      The prodct used (i.e. "prism", "tegum" or "pyramid").

    • specialFactor: string

      An element such that, when it appears in the product, is considered differently.

    • specialFactorModify: string

      Specifies what specialFactor becomes into within the product.

    • gender: Gender

    Returns string

    The resulting name.

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM