Function magnitude

  • Produces the magnitude of the given tuple

    Example

    const vector = new Vector(1, 2, 3)
    magnitude(vector) //-> 3.7416573867739413

    Returns

    A number that represents the magnitude of the given tuple

    Parameters

    • tuple: Ttuple

      Tuple to find magnitude of

    Returns number

Generated using TypeDoc