Question : How to draw a cardioid in Opengl?

Experts,

        I am learning Opengl and I am looking for an example of how to draw a cardioid curve. I have the formula as f(0) = K(1+cos(0). How do I code this in Opengl to render a cardioid curve?

Thanks, MissyMadi

Answer : How to draw a cardioid in Opengl?

You can play a bit with the equations at wolframalpha:

  http://www.wolframalpha.com/input/?i=polar+plot+2%281-cos%28phi%29%29
Random Solutions  
 
programming4us programming4us