@GeorgK,
Initially , create workpoint using coordinate points of center of mass and measure distance between workpoint and point.
Thanks and regards,