Smoothing a 2d line from an array of points
<p>When a user draws, I capture the position of their input every time the input event fires and then draw straight lines between each point.</p>

<p>Unfortunately, this creates a very jagged look, and it gets worse depending on how quickly the user moves their input relative to how quickly the input event fires.</p>

<p>What I'd like is a function that takes an array of points and returns an array of points that have been smoothed out, both in terms of filling any large gaps between points, but also removing jagged edges and replacing them with smooth curves.</p>

<p>I know this is a well known problem, just haven't had any luck forming search queries to find what I'm looking for.</p>

<p>Thanks!</p>

<p>Bonus points if the function is written in c# already :)</p>

<p>Thanks!</p>
