

To find the location of the centroid in the vertical direction, begin by establishing a reference axis parallel to the z direction at some convenient location.
For this example, the reference axis will be established on the top edge of the tee shape.