0
$\begingroup$

Given a long vector called A and a direction vector called B, how can one retrieve a position vector OC where a orthogonal line casted down to A has a fixed lenght?

enter image description here

The image above shows a 2d representation of my problem. Although, i need a solution for 3d space.

1 Answers 1

1

Let $\lambda \in \mathbb R$, $\overrightarrow{OC} = \lambda \cdot \vec B$, and $\vec L = \overrightarrow{FC}$. Denote by $\alpha$ the angle between $\vec A$ and $\vec B$. We get $\sin \alpha = \frac{|\vec L|}{|\overrightarrow{OC}|}$, so $|\overrightarrow{OC}| = |\vec L|/\sin \alpha$ and therefore $\lambda = |\vec L|/|vec B|\sin\alpha$.

HTH, AB, martini.

  • 0
    I finally found my problem :) . The sinus function expected the argument to be in radians but i worked with degress. Took me ages to realize :(2012-03-07