0
$\begingroup$

Vector $v_1=[3,3,3],v_2=[1,0,0]$;

I mean adding vector upon vector with it's direction. Like $v1+v2$ wouldn't be $[4,3,3]$ but $[4,4,4]$.

Or another example $[1,2,0]+[0,3,0]$ will be around $[3,0,0]$. I don't know math very good but in my head I can explain it as "add vector upon vector on it's rotation/direction".

The question: How to add vector upon vector on it's direction?

Here is a picture for explain my question even better: http://i.stack.imgur.com/h0xsB.png

  • 0
    @CameronBuie Yeah, I think you're right.2012-11-15

1 Answers 1

1

Looks like you just want to add the length of the second vector to the first one, correct? In this case you have

$u+|v|(u/|u|)$

where $|\cdot|$ denotes the norm, i.e., $|u|=\sqrt{u_x^2+u_y^2+u_z^2}$.

  • 2
    Ok, then compute the length $a=|u+v|$; the vector you want is then $av/|v|$.2012-11-15