Closed trb5016 closed 7 months ago
In the upcoming v6, relational operators where removed from the *.extra.cs
files in favor of generated operators (#1329).
If you like, you could make an additional PR targeting the release/v6
branch where you add the equivalent multiplication operators in UnitRelations.json
:
"Area.SquareMeter = Volume.CubicMeter * ReciprocalLength.InverseMeter",
"Length.Meter = Area.SquareMeter * ReciprocalLength.InverseMeter",
"Length.Meter = Volume.CubicMeter * ReciprocalArea.InverseSquareMeter",
The division operators will then be inferred and generated too.
Cool. That will be some nice functionality, I haven't been following on the updates for a bit.
Made PR #1385 for release/v6 as suggested.
Looks good, thanks!
Added additional operators that result in
ReciprocalLength
(Length/Area, Area/Volume) andReciprocalArea
(Length/Volume)