Moved into a house with some solar panels facing due south and some facing due west. Our latitude is 33.8 North in California. We are in the Mojave desert with very little cloud cover. The angle of the roof is 22 degrees from horizontal. What is the equation that will accept the azimuth and elevation of the sun, combine with the azimuth and elevation of the panels, and determine the angle of the sun from the solar panel perpendicular. Everything found so far requires two vectors. This is not two vectors, it is two angles. For example suppose some hours after solar local noon when the sun is at 45 degrees azimuth from the south and be 40 degrees from horizontal. The panel has an azimuth of due south (45 from the sun) and an elevation 22 from the horizontal. How many degrees is the sun from a perpendicular from the solar panel?