3d图 - > 2d圈 - >特定度/斜率/倾斜度 [英] 3d plot -> 2d circle -> specific degree / slope / tilt

查看:65
本文介绍了3d图 - > 2d圈 - >特定度/斜率/倾斜度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,这是使用谎言代数在3d图中创建二维圆的代码,



Hello, here is a code of creating a 2d circle in a 3d plot using liear algebra,

r=1;
theta=-pi:0.01:pi;
x=r*cos(theta);
y=r*sin(theta);
plot(x,y,zeroes(1,numel(x)));





我怎么能给圆圈一个特定的度数/给它一些倾斜?



how can i give the circle an specific degree / give it some tilt ?

推荐答案

只需旋转它 X (或 Y )轴。您可以在此处找到旋转矩阵公式:维基百科上的旋转矩阵 [ ^ ]。
Just rotate it around X (or Y) axis. You may find rotation matrices formula here: Rotation matrix at Wikipedia[^].


这篇关于3d图 - > 2d圈 - >特定度/斜率/倾斜度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆