getting vertices of patch object after rotation .
2 ビュー (過去 30 日間)
古いコメントを表示
Hello all , I am inserting a patch object and then rotating it about some angle . How can I get vertices of patch object after rotation ? thank you
0 件のコメント
採用された回答
Brendan Hamm
2015 年 12 月 28 日
p = patch([0 0 0.1 0.1],[0 0.2 0.2 0],'b')
p.Vertices
or
p.XData
p.YData
Although I'm not sure how you are rotating it without passing to the XData, YData, or Vertices properties.
The old way (prior to 2014b):
myVerts = get(p,'Vertices');
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!