Esempio n. 1
0
 public Acceleration AccelerationAtDistance(Mass mass, Squared <Unit> distanceSquared)
 => new Acceleration(value * mass.NumericValue / distanceSquared.NumericValue);
Esempio n. 2
0
 // ReSharper disable once CompareOfFloatsByEqualityOperator
 public bool Equals(Squared <T> other) => value == other.value;
Esempio n. 3
0
 public int CompareTo(Squared <T> other) => value.CompareTo(other.value);
Esempio n. 4
0
 public static Squared <T> Max(Squared <T> s1, Squared <T> s2)
 => new Squared <T>(System.Math.Max(s1.NumericValue, s2.NumericValue));