Created new global function 'Helper'. Goal is to store all helper functions here so they can be accessed anywhere in code. Currently, only one helper function exists, 'closestPointIndex'.
closestPointIndex gets the index of the nearest point relative to where the user clicks. Previously confined to insertPoint's scope.
Created new global function 'Helper'. Goal is to store all helper functions here so they can be accessed anywhere in code. Currently, only one helper function exists, 'closestPointIndex'.
closestPointIndex gets the index of the nearest point relative to where the user clicks. Previously confined to insertPoint's scope.