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