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
Type | Name | Description |
---|---|---|
System.Double | v | The 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
Type | Name | Description |
---|---|---|
System.Int32 | v | The value of length in meters as an int. |