Function map

  • Map all components of a vector using provided mapping function.

    Parameters

    • v: Vector

      vector

    • func: ((c: number, i: number) => number)

      mapping function

        • (c: number, i: number): number
        • Parameters

          • c: number
          • i: number

          Returns number

    Returns Vector

Generated using TypeDoc