How to make objects precisely rotate and match the angle of random diagonal lines, and make it snap
I want to know if there's a precise method of rotating objects to match the angle of random diagonal lines. For example, on the picture below, I want an object (circled black) to rotate and precisely match the red sides of the angles. On the angle on the left (circled red), that angle is exactly 90° and its red side is a vertical straight line, so I can just easily adjust my object and make it snap to that red side.
But I have no easy method that I know of on how to be precise on the angles on the right (circled blue). Angle #1 is basically 45° so I can just make the object rotate while holding shift to match that angle and be precise with it, but I can't make the object snap to that red side unlike the one earlier (the one circled red). For Angle #2 and #3, I really have no clue on how to be precise with my rotation on the object.






