Frequency shift at linear and circular motion