0
$\begingroup$

I'm struggling to make a simple logo, I have no deep knowledge of Inkscape so I'm doing it with a little bit of processing.

The problem is I can't figure out how to determine one certain point's coordinate, considering I want this point to have certain "constraints" in my geometry construct.

Here is the construct:

enter image description here

Knowing AB (=AD), AC = 1, A = (0,0), C's coordinates are easily determined.

I'm having a hard time figuring out D's coordinates.

I tried CaRMetal, it figures it out, but I can't make a logo with it.

Is it solvable, or should I determine other lenghts instead of this ?

  • 0
    Why don't you use GeoGebra?2012-08-26
  • 0
    http://zonas.free.fr/processing/ I don't know if geogebra could do something like this, or maybe close.2012-08-26

1 Answers 1

1

Unless you know the radius of the inner circle, there are infinitely many points which $D$ could be. Once you know the radius of the inner circle you will be able to find two possible points for $D$.

Supposing you know the length of $\overline{AB}$ (or equivalently, $\overline{AD}$). Then, using vector notation, you know what $\mathbf D \cdot \mathbf D$ is. Now $\mathbf D$ and $\mathbf {D-C}$ are perpendicular, so $\mathbf D\cdot (\mathbf D - \mathbf C)=0\implies \mathbf D\cdot \mathbf D=\mathbf D\cdot\mathbf C$ so if we write $\mathbf D=(x,y)$, $\mathbf C=(c_1,c_2)$ and $\overline{AD}=k$ then the points of $\mathbf D$ are given by the intersection of a line and a circle:

$$x^2+y^2=k^2=xc_1+yc_2$$

This will have two points of intersection (unless $k=0$ or the line is tangent to the circle). Obviously if $k=0$ then $\mathbf D$ is at the origin as well. Now if $k\ne0$ and $c_1\ne0$, we can solve the linear equation as follows:

$$x=-\frac {c_2}{c_1} y+\frac {k^2} {c_1}$$

Now you can substitute this in the quadratic equation:

$$\left(-\frac{c_2}{c_1} y+\frac {k^2}{c_2}\right)^2+y^2=k^2$$ Simplifying this will yield a quadratic equation for $y$ without $x$, so you may use the quadratic formula to solve for $y$. This is where you will get two values for $y$, which you can then plug back in to the earlier linear equation to solve for $x$.

If $c_1=0$, the linear equation would already give a specific value for $y$, so you would just substitute that value into the quadratic equation to find two values for $x$.

  • 0
    Yes as I said, I know AB (is equal to AD), as in length, I might not have used the correct notation.2012-08-26
  • 0
    The angle where C is, is known, thinking about the trigonometrical circle. Its angle is 4 * pi / 32012-08-26
  • 0
    by $\mathbf D \cdot \mathbf D$ do you mean $\vec D \cdot \vec D$ ?2012-08-26
  • 0
    @jokoon Yes, bold fonts are often used to indicate vectors as well2012-08-26
  • 0
    so you end up with $x^2+y^2=xc_1+yc_2=0 $, then I can regroup x and y, but what else ?2012-08-26
  • 0
    @jokoon On the contrary, if $k\ne0$ then you have two equations, $x^2+y^2=k^2$ and $xc_1+yc_2=k^2$. There are different techniques to solve these simultaneous equations, the simplest which comes to mind is to solve the second for $x$ in terms of $y$, for instance, and plug it into the first one. Of course if $c_1=0$, however, the second equation will already yield a particular value of $y$, in which case you just plug that value into the first to solve for $x$.2012-08-26
  • 0
    @jokoon I have added some additional explanation, let me know if you need me to make it clearer.2012-08-26
  • 0
    thanks I think I have more information now, I'll study it further (it could take me while, I'm a little rusted with maths right now)2012-08-26
  • 0
    I'm close to finding the answer, but the delta will be messy, do you know open-source or free website who can solve this can of equation ? (I'm planning to solve it by hand, but I'm just curious of the existing problem solver software other than mathematica).2012-08-27
  • 0
    let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/4649/discussion-between-michael-boratko-and-jokoon)2012-08-27