ixfx
    Preparing search index...

    Function fromCartesian

    • Converts a Cartesian coordinate to polar


      // Yields: { angleRadian, distance }
      const polar = Polar.fromCartesian({x: 50, y: 50}, origin);

      Any additional properties of point are copied to object.

      Options:

      • fullCircle: If true (default) returns values on 0..2PI range. If false, 0....PI..-PI range.
      • digits: Rounding to apply

      Parameters

      Returns Coord