• Calculates the nearest point to the given point on the given curve. The return value of this is a JS object literal, containing both the point's coordinates and also the 'location' of the point (see above).

    Parameters

    Returns {
        location: number;
        point: PointXY;
    }