1

Possible Duplicate:
Quadratic Bezier Curve: Calculate Point

I am doing some drawing on Canvas, I use Path.quadTo() with few points and my Paint has CornerPathEffect. So how can I get the y position of the line when x can be anything? Is there some algorithm behind CornerPathEffect which can lead to me get precise calculation in here?

Thanks.

image of problem

Community
  • 1
  • 1
Niko
  • 8,093
  • 5
  • 49
  • 85
  • How do I know the t value for the formula here?paint.setPathEffect(new CornerPathEffect(50)) does the proper transformation to the line. – Niko Nov 12 '12 at 17:59
  • 1
    t is the 'distance' between the two end points as t is between 0 and 1. So if you want the point in the center or half way it would be t=.5 percentage in a way. – Nate-Wilkins Nov 12 '12 at 18:05

0 Answers0