Scalar projection
comp
The signed length of the shadow of one vector on the line of another: the dot product divided by the length of the vector you project onto.
comp
comp≈0.8018
comp equals (((1 times (−2)) plus (1 times 3)) plus (2 times 1)) divided by the square root of (((−2) squared plus 3 squared) plus 1 squared), equals ((−2 plus 3) plus 2) divided by the square root of ((4 plus 9) plus 1), equals (1 plus 2) divided by the square root of (13 plus 1), equals 3 divided by the square root of (14), is approximately 3 divided by 3.7417, is approximately 0.8018