Function MANHATTAN

  • Manhattan distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance