I forgot to mention in my previous post, that these are useful for visualizing stuff in 3d world, this actually doesn't create surface - just lines.
I'll be using the Circle created in before to setup my sphere.
The funny thing about a sphere is that projection on any plane will always be a circle.Hence, when creating the circles we ensure that they lie on the circumference
Refer image below for clarity:
Here is the complete code:
Pretty Ok for debugging I think.
NFS: I get confused with sin and cos!Hope you've learnt something in the future!