Centroid : is the central position of a region and has a dimension of one by n length. The first component of the centroid is x-coordinate (horizontal coordinate) of center of mass, and the second component of centroid is the ycoordinate (vertical coordinate).