Mercurial > repos > public > sbplib
comparison +draw/prompt_bezier.m @ 332:875386d0b2ff feature/beams
Fixed a bug in draw and added a helper function to parametrization.Ti.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 03 Oct 2016 11:44:05 +0200 |
parents | 48b6fb693025 |
children |
comparison
equal
deleted
inserted
replaced
331:ba0fee896b41 | 332:875386d0b2ff |
---|---|
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 |