MathHelperConvertKilometersPerHourToMilesPerHour Method

RAGE Plugin Hook Documentation

[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

public static float ConvertKilometersPerHourToMilesPerHour(
	float kilometersPerHour
)

Parameters

kilometersPerHour
Type: SystemSingle
The value, in kilometers per hour.

Return Value

Type: Single
A 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

Reference