Innovenergy_trunk/csharp/Lib/Units/Resistance.cs

16 lines
427 B
C#
Raw Normal View History

2023-05-24 10:04:01 +00:00
using InnovEnergy.Lib.SrcGen;
using InnovEnergy.Lib.SrcGen.Attributes;
2023-02-26 14:39:55 +00:00
namespace InnovEnergy.Lib.Units;
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
{
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
}