Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Product

Contains methods to take various products between polytopes.

Index

Functions

Const _prism

Const _product

Const _pyramid

Const _tegum

Const extrudeToPrism

Const getIndexOfPrismProduct

  • getIndexOfPrismProduct(m: number, i: number, n: number, j: number, P: PolytopeC, Q: PolytopeC, memoizer: number[][]): number
  • Helper function for [[Polytope.prismProduct]]. Gets the index of the product of the ith m-element of P and the jth n-element of Q in the new polytope. Takes into account the order in which the elements are calculated and added.

    Parameters

    • m: number

      The dimension of an element on the first polytope.

    • i: number

      The index of an element on the first polytope.

    • n: number

      The dimension of an element on the second polytope.

    • j: number

      The index of an element on the second polytope.

    • P: PolytopeC

      The first polytope to multiply.

    • Q: PolytopeC

      The second polytope to multiply.

    • memoizer: number[][]

      An array to store past calculations.

    Returns number

    The index described above.

Const getIndexOfTegumProduct

  • getIndexOfTegumProduct(m: number, i: number, n: number, j: number, P: PolytopeC, Q: PolytopeC, memoizer: number[][], tegumMode: boolean): number

Const prism

  • Calculates the prism product (Cartesian product) of a set of polytopes. Vertices are the products of vertices, edges are the products of vertices with edges or viceversa, and so on.

    Parameters

    • Rest ...P: PolytopeB[]

      The list of polytopes to "multiply" together.

    Returns PolytopeB

Const pyramid

Const tegum

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