cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Drawing in MFC C++
Drawing in MFC C++
Nov 6, 2008 at 2:36pm UTC
komal
(13)
I want to draw small circles , the number of which depends on user input. Now these circles are to be located such that they lie around a bigger circle...I need ideas to know how I can do this.
Nov 6, 2008 at 5:50pm UTC
firedraco
(6247)
Well you could just get an equation for the big circle, then find the appropriate points where the center of the smaller circles need to be.
Nov 7, 2008 at 3:33pm UTC
komal
(13)
How do I find those points
Nov 7, 2008 at 3:50pm UTC
Bazzy
(6281)
You should know the trigonometry basics:
given a radian angle θ, the sine of that will be the y position and the cosine the x position (this in a circle with 1 as radius)
http://en.wikipedia.org/wiki/Trigonometry
Topic archived. No new replies allowed.