14 private static readonly
int hashCode = typeof(
PhysicalQuantities).FullName.GetHashCode();
50 public override bool Equals(
object obj)
73 return d1.
Magnitude.CompareTo(Magnitude2);
Base class for all types of elements.
Base class for all types of fields.
Base class for script exceptions.
Pseudo-field of physical quantities.
PhysicalQuantities()
Pseudo-field of physical quantities.
override ICommutativeRingWithIdentityElement One
Returns the identity element of the commutative ring with identity.
override int GetHashCode()
Calculates a hash code of the element. Hash code.
override IAbelianGroupElement Zero
Returns the zero element of the group.
override bool Equals(object obj)
Compares the element to another. If elements are equal.
override bool Contains(IElement Element)
Checks if the set contains an element.
int Compare(IElement x, IElement y)
Compares two double values.
static readonly PhysicalQuantity ZeroElement
0
double Magnitude
Magnitude
static readonly PhysicalQuantity OneElement
1
static bool TryConvert(double From, Unit FromUnit, Unit ToUnit, out double To)
Tries to convert a magnitude in one unit to a magnitude in another.
Basic interface for all types of abelian group elements.
Basic interface for all types of commutative ring with identity elements.
Basic interface for all types of elements.
Basic interface for ordered sets.