add centroid() to ChromaticObject
(#564)