Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have the following image:

enter image description here

I want to know the direction of orange arrow given the two points, I know that if the direction is (0, -1) the orange will be pointing up, but how can I get the direction given this points?

share|improve this question
    
do you want to know the direction vector? the direction of the orange arrow is the same as the direction from A to B. So, you have to form a vector AB. –  Ronald Apr 5 '12 at 19:57

1 Answer 1

up vote 1 down vote accepted

You can compute the direction vector as follows $v := \frac{b - a}{\|b - a\|}$ where $\|\cdot\|$ denotes the Euclidean norm.

You'll get $b - a = (-10, -60)$ and $\|b - a\| = \sqrt{ (b_1-a_1)^2 + (b_2-a_2)^2} = \sqrt{(-10)^2 + (-60)^2} = \sqrt{3700}$ and hence the direction vector

$$ \left ( \begin{array}{c}\frac{-10}{\sqrt{3700}} \\ \frac{-60}{\sqrt{3700}} \end{array} \right )$$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.