The trace of the curvature determines similarity