Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Updated 22-Apr-13 11:27am
v2
Comments
Sergey Alexandrovich Kryukov 22-Apr-13 16:02pm    
Programming language? Platform?
—SA
beratxt 22-Apr-13 17:18pm    
C# but it can be also in C++ / C . BUT SUGGESTs C#
[no name] 22-Apr-13 17:50pm    
Well in that case I would suggest the you learn how to write code in C# first.

1 solution

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
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900