Function nearestPointOnCircle

  • Parameters

    • circle: Circle

      object with "radius" (number) and "origin" (number[])

    • point: [number, number]

      the point to test nearness to

    Returns [number, number]

    a point

    Description

    find the nearest point on the boundary of a circle to another point that is closest to the provided point.