Dimensionful |
The DimensionfulQuantity type exposes the following members.
| Name | Description | |
|---|---|---|
| Abs | Get the absolute value of this quantity. | |
| Abs(DimensionfulQuantity) | Gets the absolute value of the specified quantity. | |
| AsQuantityIn(IPrefixedUnit) | Converts this quantity to another quantity in the provided prefixed unit. | |
| AsQuantityIn(IUnit) | Converts this quantity to another quantity in the provided unit (without prefix). | |
| AsQuantityIn(SIPrefix, IUnit) | Converts this quantity to another quantity in the provided unit, with the provided prefix. | |
| AsValueIn(IPrefixedUnit) | Converts this quantity to its numerical value in the given unit, with the given prefix. | |
| AsValueIn(IUnit) | Converts this quantity to its numerical value in the given unit (without prefix). | |
| AsValueIn(SIPrefix, IUnit) | Converts this quantity to its numerical value in the given unit, with the given prefix. | |
| CompareTo(DimensionfulQuantity) | Compares this quantity to another quantity. | |
| CompareTo(Object) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
| Equals(DimensionfulQuantity) | Indicates whether the current object is equal to another object of the same type. | |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsEqualInValuePrefixUnit | Determines whether this instance is equal to another quantity in all three components (value, prefix and unit). This is not a comparison for the physical equality of the quantities. | |
| Max | Returns the larger of two quantities. | |
| Min | Returns the smaller of two quantities. | |
| RoundUpOrDown | Rounds a quantity to the nearest multiple of another quantity. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| ToString(String, IFormatProvider) | Formats the value of the current instance using the specified format. | |
| WithNewValue | Creates an instance with a new value, and with the same prefix and unit as this quantity. |
| Name | Description | |
|---|---|---|
| CheckUnitCompatibleWith |
Checks whether the quantity x has the expected expectedUnit, and if not, throws an ArgumentException.
(Defined by DimensionfulQuantityExtensions) |