- #1
tuoni
- 61
- 0
Is it possible to from a cubic Bezier curve (B) first calculate t as a function of x, and then y as a function of t?
I am currently using:
[itex]B(t) = (1-t)^{3} \cdot P_{0} + 3(1-t)^{2} \cdot P_{1} + 3(1-t)^{2} \cdot P_{2} + t^{3}P_{3}[/itex]
; which works just fine to model several curves I need to use in my calculations, however, I would need to be able to calculate y as a function of x, as opposed to B as a function of t.
Is it possible? Simple rearranging doesn't seem to be possible.
I am currently using:
[itex]B(t) = (1-t)^{3} \cdot P_{0} + 3(1-t)^{2} \cdot P_{1} + 3(1-t)^{2} \cdot P_{2} + t^{3}P_{3}[/itex]
; which works just fine to model several curves I need to use in my calculations, however, I would need to be able to calculate y as a function of x, as opposed to B as a function of t.
Is it possible? Simple rearranging doesn't seem to be possible.