raycast and linecast for search of scene

I want to find out about the nature of rigid object that are blocking between two scene objects. (3D shape, id, type of object). Will LineCast and Raycast return in the HitObject all items that are are blocking the ray?

Is this a narrow ray, or is does it have a thickness?

Look up RaycastHit and Raycast in the documentation.