I have an NSBezierPath which is shows a visual description of some data. As such, I not only need to see the NSBezierPath visually, I also would like to query it at any x value to determine the corresponding y value(s).
In short, I would like to use the NSBezierPath (or any BezierPath) in my view, and in my model. I want the view and the model to use the same formula, so that the visual representation of the model is accurate.
I recognize that in providing an x value, the number of corresponding y values could be zero, one, or many. Currently, I do not see any way to get individual points out of the NSBezier path, except for the control points and endpoints. I want to be able to query the Bezier Path for its value at ANY location, not just critical points.