开发者

Computing Rotation Speed In C++ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Basically, In C++, how do I compute how long will it take for a car wheel to rotate 360 degrees while moving at a speed of 1开发者_如何学Python0 MPH? I've tried googling but nothing showed up. Any ideas?

As usual, I've searched this site for an answer but nothing showed up - unless I missed one.

Thanks.


If you know the speed of your object and the radius of the circle it moves on, then the time needed for one rotation is

rotation_time = 2*pi*radius/speed

The number of rotations per time unit is

rotation_speed = 1/rotation_time

The angular speed is

angular_speed = full_circle/rotation_time,

with the value of full_circle depending on your angular unit, e.g. 360 or 2*pi.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜