calculating position of revolving circle