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.160 -- Release Build+19b74ac03cedad8575bb1ceb00051318b7421d0d
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