function for returning an angle that is vertical to the surface