Converts a vector to a polar coordinate. If the provided value is already Polar, it is returned.

  • Parameters

    • v: Vector
    • origin: {
          x: 0;
          y: 0;
      } = PointEmpty
      • Readonlyx: 0
      • Readonlyy: 0

    Returns Coord

    Polar vector