MathHelperConvertMilesPerHourToKilometersPerHour Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Converts the specified value from miles per hour to kilometers per hour.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static float ConvertMilesPerHourToKilometersPerHour(
	float milesPerHour
)

Parameters

milesPerHour
Type: SystemSingle
The value, in miles per hour.

Return Value

Type: Single
A Single representing the value in miles per hour.
Examples

The following example converts 31.0686 mph to km/h, and shows it in a notification.

float kilometersPerHour = MathHelper.ConvertMilesPerHourToKilometersPerHour(31.0686f);
Game.DisplayNotification("31.0686 mph is " + kilometersPerHour.ToString() + " km/h.");
See Also

Reference