(t,knot,Ncycle)
| 44 | return Nopen(0,m,z,knot) |
| 45 | |
| 46 | def P(t,knot,Ncycle): |
| 47 | L = len(points) |
| 48 | SumX = 0.0 |
| 49 | SumY = 0.0 |
| 50 | for k in range(L): |
| 51 | n = Ncycle(k,m,t,knot) |
| 52 | SumX = SumX + n * points[k][0] |
| 53 | SumY = SumY + n * points[k][1] |
| 54 | return [SumX,SumY] |
| 55 | |
| 56 | def plot(): |
| 57 | global m |
no test coverage detected