12,072,809 members (69,428 online)
Rate this:
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

Posted 22-Apr-13 10:52am
beratxt745
Edited 22-Apr-13 12:27pm
v2
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#
ThePhantomUpvoter 22-Apr-13 17:50pm

Well in that case I would suggest the you learn how to write code in C# first.

Rate this:

## Solution 1

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
v5

Top Experts
Last 24hrsThis month
 OriginalGriff 465 Dave Kreskowiak 275 CPallini 255 F-ES Sitecore 220 Jochen Arndt 150
 Dave Kreskowiak 2,506 OriginalGriff 2,034 Richard MacCutchan 1,675 CPallini 1,377 CHill60 1,219