Move 2 vectors parallel with a distance

Hi

I search a way to move 2 dynamic vectors in x-y parallell with a float.
i have found a formula, but wanted to ask here if there is such a blueprint function in the unreal engine for this math problem?

greez swizzy

Use the Pythagorean theorem ifrom the image you have 1…
…1 is the value of the shift…
…1 is the diagonal of the square…
assume a value for the side of the square (the square have 1 as diagonal)
to know the value of the diagonal you have this math expression:

math.png

if you know the shift value because is your value you can use inverse formula.