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