How to get a vector between two vectors?

I have three points with initial values ​​of x and y. What I really want is the position in which the actual vector will go (see image). Could you help me? I worked a bit with atan2 and parallelograms, but, unfortunately, without success.

Image

+5
source share
2 answers

Again, let me remind you that I might have missed something, but I think this is a pretty simple addition of vectors:

let point A be (700, 500)
let point B be (400, 400)
let point C be (650, 100)
let point D be (???, ???)

the vector from A to B is: (-300, -100) // i.e. x = B-A, 400 - 700, etc
the vector from A to C is: (-50, -400)
Adding these together yields the vector from A to D: (-350, -500).
Adding that vector to point A yields the coordinates of the point D: (350, 0)
+7
source

Generally speaking, we find the equations of the bisectors of the angle between the lines

a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0.

The bisector is the locus of a point that moves so that the perpendiculars taken from it to two given lines are equal.

Bisector equations

a1x + b1y + c1 / √a12 + b12 = + a2x + b2y + c2 / √a22 + b22.

Just adapt these equations to your specific case.

0
source

All Articles