84 |
* (P1), and final interpolated control point (P2): |
* (P1), and final interpolated control point (P2): |
85 |
* <pre> |
* <pre> |
86 |
* P(t) = B(2,0)*CP + B(2,1)*P1 + B(2,2)*P2 |
* P(t) = B(2,0)*CP + B(2,1)*P1 + B(2,2)*P2 |
87 |
* 0 <= t <= 1 |
* 0 <= t <= 1 |
88 |
* B(n,m) = mth coefficient of nth degree Bernstein polynomial |
* B(n,m) = mth coefficient of nth degree Bernstein polynomial |
89 |
* = C(n,m) * t^(m) * (1 - t)^(n-m) |
* = C(n,m) * t^(m) * (1 - t)^(n-m) |
90 |
* C(n,m) = Combinations of n things, taken m at a time |
* C(n,m) = Combinations of n things, taken m at a time |
100 |
* (P2), and final interpolated control point (P3): |
* (P2), and final interpolated control point (P3): |
101 |
* <pre> |
* <pre> |
102 |
* P(t) = B(3,0)*CP + B(3,1)*P1 + B(3,2)*P2 + B(3,3)*P3 |
* P(t) = B(3,0)*CP + B(3,1)*P1 + B(3,2)*P2 + B(3,3)*P3 |
103 |
* 0 <= t <= 1 |
* 0 <= t <= 1 |
104 |
* B(n,m) = mth coefficient of nth degree Bernstein polynomial |
* B(n,m) = mth coefficient of nth degree Bernstein polynomial |
105 |
* = C(n,m) * t^(m) * (1 - t)^(n-m) |
* = C(n,m) * t^(m) * (1 - t)^(n-m) |
106 |
* C(n,m) = Combinations of n things, taken m at a time |
* C(n,m) = Combinations of n things, taken m at a time |