Find side ways from one to another point

Im trying find start and end points of side way from one object to another.
like this:

    private (Vector 3, Vector3) FindSideWay(Vector 3 object1, Vector 3 object2, bool RightOrLeft) 
    {
            // How can i find it? 
    }

maybe it’s easy and Im stupid :frowning:

I dont quite understand the problem.

What should the side way satisfy?

What is object1? Is it a position of the object?

This is really funny bool :smiley: When do you set it to true? If its right or left? Or both?