This commit is contained in:
2026-06-12 23:34:00 +07:00
parent 790a5f8e10
commit d7e9bb7b5b
27 changed files with 1167 additions and 1020 deletions

View File

@@ -1073,14 +1073,6 @@ public readonly partial record struct {typeName} : IMensuraUnit<{typeName}>, IEq
public static class {typeName}Extensions
{
internal static double Protected(this {typeName}? unit) => unit is null ? 0d : unit.Value._Value;
internal static {typeName} ProtectedU(this {typeName}? unit) => unit is null ? {typeName}.Zero : unit.Value;
// === ReadOnlySpan
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Div(this ReadOnlySpan<{typeName}> units,
double divisor, Span<{typeName}> destination) => units.Div<{typeName}>(divisor, destination);