Function magnitude

  • Calculate the magnitude (length) of a vector.

    Returns

    √(x² + y² + z²)

    Parameters

    • xs: number[]

      vector ([x, y, z, ...])

    Returns number

Generated using TypeDoc