Function get_vector_direction

  • Gets the direction of a given vector.

    Parameters

    • x1: number

      x source pos.

    • x2: number

      x dest pos.

    • y1: number

      y source pos.

    • y2: number

      y dest pos.

    Returns directions

    The direction of the given vector.