Shading mask_shaded patches criteria

Hello everyone.
I have a question regarding the calculation of the shading mask using ladybug. In detail, what criterion does ladybug use to decide whether a patch is shaded or not? For example, does it refer to the centre of the patch that must be shaded in order to consider the entire patch shaded, or is it sufficient that the patch intersects at any point with an object that generates shadow?

Thank you