2023-05-24 10:04:01 +00:00
|
|
|
using InnovEnergy.Lib.SrcGen;
|
|
|
|
using InnovEnergy.Lib.SrcGen.Attributes;
|
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-05-24 10:04:01 +00:00
|
|
|
[Generate<Operators>][Generate<Parallel>]
|
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";
|
|
|
|
|
2023-05-24 10:04:01 +00:00
|
|
|
// // 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
|
|
|
}
|