`X(i)`

in sorted order and` Y(i)`

corresponds to `X(i)`

, `Y(i) = Y(i-1) + (X(i) - X(i-1))*(Y(i+1) - Y(i-1))/(X(i+1) - X(i-1))`

, where the values of both `X`

and `Y`

are known at `i-1`

and `i+1`

.As far as the

`DrawLine`

and `DrawCurve`

methods, they draw to the screen (or a graphics context). They don't create an array of points that you can readily read.