Using rays to align a plan and elevation