Beispiel #1
0
 public static Desnity <T> Add(Desnity <T> a, Desnity <T> b)
 {
     Density.Units units = a.Units <= b.Units ? a.Units : b.Units;
     return(new Desnity <T>(Compute.Add(a[units], b[units]), units));
 }
Beispiel #2
0
 public static bool NotEqual(Desnity <T> a, Desnity <T> b)
 {
     Density.Units units = a.Units <= b.Units ? a.Units : b.Units;
     return(Compute.NotEqual(a[units], b[units]));
 }
Beispiel #3
0
 public static bool GreaterThanOrEqual(Desnity <T> a, Desnity <T> b)
 {
     Density.Units units = a.Units <= b.Units ? a.Units : b.Units;
     return(Compute.GreaterThanOrEqual(a[units], b[units]));
 }
Beispiel #4
0
 public static bool LessThan(Desnity <T> a, Desnity <T> b)
 {
     Density.Units units = a.Units <= b.Units ? a.Units : b.Units;
     return(Compute.LessThan(a[units], b[units]));
 }
Beispiel #5
0
 public static Desnity <T> Divide(Desnity <T> a, T b)
 {
     return(new Desnity <T>(Compute.Divide(a._measurement, b), a._units));
 }
Beispiel #6
0
 public static Desnity <T> Multiply(T b, Desnity <T> a)
 {
     return(new Desnity <T>(Compute.Multiply(a._measurement, b), a._units));
 }