Find a line to cut two squares in half
Problem: Given two squares on a two dimensional plane, find a line that would cut these two squares in half.
Solution: Any Line passing the centers of the two squares will cut them in halves. So, we have to connect the lines between the center of the 2 squares. The straight line that connects the two centers of the two squares will cut both of them into half.
[Read More]