[Gambas-user] miles per hour to pixels per frame (general unit conversion function)
Kevin Fishburne
kevinfishburne at ...1887...
Sat Aug 20 09:17:54 CEST 2011
I came up with this equation, which I think is correct:
Public Function MPH2PPF(MPH As Single) As Single
' Convert miles per hour to pixels per frame.
' 1 mile = 675840 pixels.
' 1 hour = 108000 frames.
Return MPH * 675840 / 108000
End
The frame rate is 30 FPS, and 128 pixels = one foot. Can anyone verify
that this is correct?
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
More information about the User
mailing list