[This is preliminary documentation and is subject to change.]
Converts the specified value from kilometers per hour to miles per hour.
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
Parameters
- kilometersPerHour
- Type: SystemSingle
The value, in kilometers per hour.
Return Value
Type: SingleA Single representing the value in miles per hour.
Examples
The following example converts 50 km/h to mph, and shows it in a notification.
float milesPerHour = MathHelper.ConvertKilometersPerHourToMilesPerHour(50f); Game.DisplayNotification("50 km/h is " + milesPerHour.ToString() + " mph.");
See Also