Skip to main content

Class LengthExtensions

Provides extension methods for creating Length instances.

Assembly: Meadow.Units.dll
View Source
public static class LengthExtensions

Methods

Meters(double)

Creates a Length instance with the specified value in meters.

View Source
public static Length Meters(this double v)
Returns

Meadow.Units.Length: A new Length instance with the specified value.

Parameters
TypeNameDescription
System.DoublevThe value of length in meters as a double.

Meters(int)

Creates a Length instance with the specified value in meters.

View Source
public static Length Meters(this int v)
Returns

Meadow.Units.Length: A new Length instance with the specified value.

Parameters
TypeNameDescription
System.Int32vThe value of length in meters as an int.