Calculates the distance between two vectors.

  • Parameters

    • x1: number

      The X component of the first vector.

    • y1: number

      The Y comoinent of the first vector.

    • x2: number

      The X component of the second vector.

    • y2: number

      The Y component of the second vector.

    Returns number

    The distance between the two vectors.