Visualizing 2d rotation plot

1 回表示 (過去 30 日間)
Reuben Addison
Reuben Addison 2019 年 12 月 11 日
編集済み: Reuben Addison 2019 年 12 月 11 日
I did this rotation sometime ago and I want to visualize it on the plot to confirm my rotation. Any help?
I USED THE CODE BELOW
target_x = 27.000;
target_y = 16.000;
start_x = 24.000;
start_y = 16.000;
p = [target_x target_y]';
rotPt = [start_x start_y]';
theta = pi/4 ;
R = [cos(theta) -sin(theta); sin(theta) cos(theta)];
pTmp = p - rotPt;
pRotTmp = R * pTmp;
pRot = pRotTmp + rotPt;

回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Volume Data についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by