Modeling2.html
From 2013.igem.org
(Difference between revisions)
Line 276: | Line 276: | ||
+ | |||
+ | }; | ||
+ | this.plot = function(){ | ||
+ | plotSolution(this.yone, this.ytwo, graphyMin); | ||
+ | }; | ||
+ | |||
+ | var flagellum = function(x, y1, y2, theta) { | ||
+ | var cx1 = x - s + 0.01*s*sin(theta); | ||
+ | var cx2 = x - s*2 + 0.01*s*sin(theta+90); | ||
+ | var x2 = x - s*3; | ||
+ | var cy1 = y1 + 2*s*cos(theta); | ||
+ | var cy2 = y1 - 2*s*cos(theta+90); | ||
+ | bezier(x, y1, cx1, cy1, cx2, cy2, x2, y2); | ||
}; | }; |
Revision as of 23:37, 27 September 2013