I need to connect three points by a smooth curve. I’ve looked at the same questions already answered on StackOverflow but they all suggest using Path.quadTo(). I do not understand why this is considered a correct answer as Bezier curve is only approaching middle (control) point but not going through it. In my case I have to go exactly through it. So how can I achieve that?
I need to connect three points by a smooth curve. I’ve looked at the
Share
True, what you need is Catmull Rom splines which are guaranted to go through each point. However, I don’t know any function in the Android API to draw them. You could also “trick” the quadTo function and pass it a virtual middle point that you compute according to the current point and the next one.