3
$\begingroup$

I have two vectors (and their two dimensional components): $\vec{AB}$ and $\vec{AC}$ that have the same length.
How can I calculate a vector $\vec{AD}$ components that satisfies
$\angle {DBA} = \angle {DCA} = 90$
$\angle {DAB} = \angle {DAC} $

Basically I need the result vector to be angle bisector of the two vectors, and create two right triangles with the vectors where the right angle in each is in the end point of the vectors (not on the result vector).

This is not homework. its for an application I develop and I have no clue how to solve it.

Edit: an image of what I need with my amazing drawing skills:
enter image description here

  • 1
    @J. M. added an image.2011-09-02

2 Answers 2

4

Because $AB$ and $AC$ are the same length, $\angle DAB = \angle DAC$ if $AD$ is along the direction of $AB + AC$, that is, $AD = \alpha(AB + AC).$ Now $\angle DBA = 90^\circ$ means that $AB \cdot BD = 0,$ so $AB \cdot (\alpha (AB + AC) - AB) = 0$ $\alpha = \frac{\lvert AB \rvert^2}{\lvert AB \rvert^2 + AB\cdot AC}$

  • 0
    Thats working great, thanks.2011-09-02
0

Here goes: let $A$ be the origin, and let $B$ have the coordinates $(-x_b,y_b)$ and $C$ have the coordinates $(x_b,y_b)$. (The system can always be rotated for this to apply.)

The line through $A$ and $C$ has the slope $\frac{y_b}{x_b}$, and thus a line perpendicular to it at $C$ should be of the form $y=y_b-\frac{x_b}{y_b}(x-x_b)$ One could use a similar argument to form the equation of the perpendicular through $A$ as $y=y_b+\frac{x_b}{y_b}(x+x_b)$. Solving these two equations simultaneously yields the coordinates of $D$ as $\left(0,\frac{x_b^2+y_b^2}{y_b}\right)$.