Using the Equation of a Circle in Visual Basic
Circles are represented by the general equation
(x - a)2 + (y - b)2 = r2
;
where (a, b) is the centre of the circle and
r the radius.
Solving for y, we have:
(y - b)2 = r2 - (x - a)2
y - b = ±√(r2 - (x - a)2)
y = b ± √(r2 - (x - a)2)