Mercurial > repos > public > sbplib
comparison +draw/prompt_bezier.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 875386d0b2ff |
children |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
20 c2 = draw.prompt_point('Enter control point 2\n'); | 20 c2 = draw.prompt_point('Enter control point 2\n'); |
21 p = draw.point(c2); | 21 p = draw.point(c2); |
22 p.Color = Color.yellow; | 22 p.Color = Color.yellow; |
23 p.MarkerSize = 16; | 23 p.MarkerSize = 16; |
24 | 24 |
25 C = grid.Curve.bezier(a,c1,c2,b); | 25 C = parametrization.Curve.bezier(a,c1,c2,b); |
26 fprintf('C = grid.Curve.bezier([%.3g; %.3g],[%.3g; %.3g],[%.3g; %.3g],[%.3g; %.3g]);\n',a,c1,c2,b) | 26 fprintf('C = parametrization.Curve.bezier([%.3g; %.3g],[%.3g; %.3g],[%.3g; %.3g],[%.3g; %.3g]);\n',a,c1,c2,b) |
27 h = C.plot(); | 27 h = C.plot(); |
28 uistack(h,'bottom'); | 28 uistack(h,'bottom'); |
29 | 29 |
30 end | 30 end |