Mercurial > repos > public > sbplib
comparison +draw/prompt_bezier.m @ 427:a613960a157b feature/quantumTriangles
merged with feature/beams
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 26 Jan 2017 15:59:25 +0100 |
parents | 875386d0b2ff |
children |
comparison
equal
deleted
inserted
replaced
426:29944ea7674b | 427:a613960a157b |
---|---|
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 |