Class FrequencyExtensions
Provides extension methods for creating Frequency instances.
Assembly: Meadow.Units.dll
View Source
public static class FrequencyExtensions
Methods
Hertz(double)
Creates a Frequency instance with the specified value in Hertz.
View Source
public static Frequency Hertz(this double v)
Returns
Meadow.Units.Frequency: A new Frequency instance with the specified value.
Parameters
Type | Name | Description |
---|---|---|
System.Double | v | The value of frequency in Hertz as a double. |
Hertz(int)
Creates a Frequency instance with the specified value in Hertz.
View Source
public static Frequency Hertz(this int v)
Returns
Meadow.Units.Frequency: A new Frequency instance with the specified value.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v | The value of frequency in Hertz as an int. |