Endothelial cells have a mesenchymal origin and may take up different forms, depending on their lining function, since they can either be continuous or fenestrated. They line the internal (intima) lumen of capillaries, veins, and arteries, as well as of lymphatic vessels and cardiac cavities.