built-in function for rotating a curve

is there any built in function to rotate any curve along any random axis(say i want to rotate a bezier curve along [1 1 1] by 30 degrees)?

回答 (1 件)

Andreas Bernatzky
Andreas Bernatzky 2019 年 4 月 18 日

0 投票

3 件のコメント

rutvik baxi
rutvik baxi 2019 年 4 月 18 日
First of all thanks for replying. I had tried your suggestion but it doesn't rotate at all. I have herewith attached an extract of my code for your reference:(normal is a 1x3 vector)
fplot3(xt,yt,zt,[0,1]);
title('G1 continuity');
hold on
h=fplot3(x1t, y1t, z1t, '-r', [0,1]);
rotate(h,normal,angle);
hold off
Thanks.
Walter Roberson
Walter Roberson 2019 年 4 月 18 日
Do you want to rotate or do you want a revolution? rotate changes the coordinate system but not the shape, but revolution is the collection of points occupied while rotating, like revolving a rectangle can give a cylinder.
rutvik baxi
rutvik baxi 2019 年 4 月 19 日
i want to rotate

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeInterpolation についてさらに検索

タグ

質問済み:

2019 年 4 月 18 日

コメント済み:

2019 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by