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.162 -- Release Build+f11797ef017301be20d4b9376f78ac29ba38c21a
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