A vector \((a,b,c)\) represents directed changes along the three coordinate axes. The displacement from \(A\) to \(B\) is \(\vec B-\vec A\). Reversing the direction negates every component.
The magnitude is \(\sqrt{a^2+b^2+c^2}\). Divide a nonzero vector by its magnitude to get a unit vector pointing in the same direction. The zero vector has no specified direction.
If \(AP:PB=m:n\) with positive \(m,n\), the position vector of \(P\) is \((n\vec A+m\vec B)/(m+n)\). The greater weight goes with the endpoint closer to \(P\). Equal weights give the midpoint. For external division, use \((m\vec B-n\vec A)/(m-n)\) when \(m\ne n\).