2023-02-26 14:39:55 +00:00
|
|
|
using InnovEnergy.Lib.Units.Generator;
|
2023-02-26 09:38:28 +00:00
|
|
|
|
2023-02-26 14:39:55 +00:00
|
|
|
namespace InnovEnergy.Lib.Units;
|
2023-02-26 09:38:28 +00:00
|
|
|
|
2023-03-01 07:05:57 +00:00
|
|
|
|
|
|
|
|
2023-03-20 12:22:57 +00:00
|
|
|
[Generate]
|
2023-02-26 14:39:55 +00:00
|
|
|
public readonly partial struct Resistance
|
2023-02-26 09:38:28 +00:00
|
|
|
{
|
|
|
|
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);
|
2023-02-26 14:39:55 +00:00
|
|
|
|
2023-02-26 09:38:28 +00:00
|
|
|
}
|