5
$\begingroup$

Me and a friend have been trying to find a way to get the position of a second point (B on the picture) having the first point (A), the length of the chord (d) and the radius (r).

It must be possible right? We know the solution will be two possible points but since it's a semicircle we also know the x coordinate of B will have to be lower than A and the y coordinate must be always greater than 0. Think you can help?

Here's a picture to illustrate the example:

enter image description here

Thanks in advance!

3 Answers 3

3

I prefer a trigonometric approach.

enter image description here

Points $A$ and $B$ on an origin-centered circle of radius $r$ can be represented as

$A := (r \cos\alpha, r \sin\alpha) \qquad B := (r\cos\beta, r\sin\beta)$

for angles $\alpha$ and $\beta$ as shown in the image.

Now, simply note that $\beta = \alpha - \theta$, where (as shown below) $\theta = 2\;\mathrm{asin}\frac{d}{2r}$, to get the location of $B$.


The formula for $\theta$ follows from the Law of Cosines:

$d^2 = r^2 + r^2 - 2 r^2 \cos\theta = 2 r^2 ( 1 - \cos\theta) = 4 r^2 \sin^2\frac{\theta}{2} = \left( 2 r \sin\frac{\theta}{2} \right)^2$

Therefore, $d = \pm 2 r \sin\frac{\theta}{2}$, although we can take the "$\pm$" to be "$+$". This gives $\theta = 2 \;\mathrm{asin}\frac{d}{2r}$, as claimed.

  • 0
    That did the trick! Thank you!2012-07-02
1

Just to give you the formulas @avatar is talking about:

Any point $(x,y)$ on a circle of radius $r$ around the origin satisfies

$x^2+y^2=r^2$

And the distance $d$ of two points $(x_i,y_i)$, $i=1,2$ is given by

$(x_1-x_2)^2+(y_1-y_2)^2=d^2$

edit:a totally different and maybe more elegant way to do this is to express the angle between A and B as a fuction of r and d using trigononetric fuctions (sorry for being vague, boarding my flight now)

  • 0
    note that in ur last equation everything but $y_2$ is given and can be considered to be a constant. then it is of degree 22012-06-29
0

There are two variables $(a,b)$ the coordinates of B. Since B lies on the circle,it satisfies the equation of the circle. Also,the distance of $B$ from $A$ is $d$.You can apply distance formula to get an equation from this condition.Now you have two variables and two equations from two conditions,you can solve it now yourself.