如何在opengl中绘制astroid? [英] how to draw astroid in opengl ?

查看:77
本文介绍了如何在opengl中绘制astroid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



是OpenGL的新功能。我想使用下面给出的功能绘制astroid进行练习。

我不能做任何步骤..你可以帮我吗?



功能:



x = a * cos(t)^ 3

y = a * sin(t)^ 3



提前付款

Hi guys ,

İm new in OpenGL . I want to draw astroid using the function given below for practise.
I cant do any step .. Can u help with me ?

functions :

x = a*cos(t)^3
y = a*sin(t)^3

Thanks for in advance

推荐答案

你的方程式没有描述星号。你不应该乘以3,你应该乘正弦和余弦立方 x =cos³(θ),y = sin³(θ)

http://en.wikipedia.org/ wiki / Astroid [ ^ ]。



我不认为,如果没有您的语言和平台规范以及数学中的证明水平,任何进一步的讨论都可能有意义,对不起。



-SA
Your equations do not describe the astroid. You should not multiply by 3, you should take a sine and cosine cubed, x=cos³(θ), y=sin³(θ):
http://en.wikipedia.org/wiki/Astroid[^].

I don''t think that, without your specifications of language and platform and the demonstrated level in mathematics, any further discussion might make any sense, sorry.

—SA


这篇关于如何在opengl中绘制astroid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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