Gemstone Common Library
Show/Hide TOC

# SpeedConvertFrom Method

Converts the value in the specified sourceUnit to a new Speed in meters per second.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
C#
View Source Request Example

    public static Speed ConvertFrom(
    	double value,
    	SpeedUnit sourceUnit
    )

VB
View Source Request Example

    Public Shared Function ConvertFrom (
    	value As Double,
    	sourceUnit As SpeedUnit
    ) As Speed

C++
View Source Request Example

    public:
    static Speed ConvertFrom(
    	double value,
    	SpeedUnit sourceUnit
    )

JavaScript
View Source Request Example

    Gemstone.Units.Speed.ConvertFrom = function(value, sourceUnit);

#### Parameters

value Double
  Source value.
sourceUnit SpeedUnit
  Source value units.

#### Return Value

Speed
New Speed from the specified value in sourceUnit.

## See Also

#### Reference

Speed Structure
Gemstone.Units Namespace