19 lines
416 B
C#
19 lines
416 B
C#
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
|
|
|
|
[Generate]
|
|
public readonly partial struct Resistance
|
|
{
|
|
public static String Unit => "Ω";
|
|
public static String Symbol => "R";
|
|
|
|
|
|
public Resistance(Decimal value) => Value = value;
|
|
|
|
// U=RI
|
|
public static Voltage operator *(Resistance resistance, Current current) => new Voltage(resistance.Value * current.Value);
|
|
|
|
} |