ixfx
    Preparing search index...
    • Returns the center of a circle

      If the circle has an x,y, that is the center. If not, radius is used as the x and y.

      const circle = { radius: 5, x: 10, y: 10};

      // Yields: { x: 5, y: 10 }
      Circles.center(circle);

      It's a trivial function, but can make for more understandable code

      Parameters

      Returns Readonly<{ x: number; y: number }>

      Center of circle