-
Hi I was wondering if someone could help on this:
I have an imaginary circle on a form with 16 buttons layed out around the circle at even intervals.
I want to make some code to specify the position of each button. How do I calculate the specific x and y position of a point on a circle?
Thankyou
-
You need a radius and the angle of inclination relative to the center of the circle.
y = r * sin á
x = r * cos á
á is the angle in degrees
Using the sin, cos, tan in VB requires the parameter to be in radians. to convert degrees to radians, multiply the value with pi/180 (pi= 3.141592654).
-
Thankyou it works perfectly