Name | Description | |
---|---|---|
![]() | CalculateDimensionBaseUnit | Gets the base unit for the unit dimension. |
![]() | ConvertTo | Overloaded. Gets the conversion factor for converting a quantity measured in this unit to the target unit. Throws an exception if the conversion is not possible. |
![]() | ConvertToPixels | Gets the conversion factor for converting a quantity measured in this unit to the pixel unit for the specified resolution. Throws an exception if the conversion is not possible. |
![]() | ConvertToUnsafe | Gets the conversion factor for converting a quantity measured in this unit to the target unit. Assumes that the to unit is from the same dimension. |
![]() | Deserialize | |
![]() | Divide | Divides this unit with the specified unit and returns the resulting unit and a number |
![]() | Equals | Checks whether the given object is equal to this base unit. |
![]() | Format | Formats this unit, using either full names or abbreviated ones. |
![]() | GetAbbreviation | Gets the unit short name (abbreviation) |
![]() ![]() | GetDimensionBaseUnit | Gets the base unit for the specified dimension |
![]() | GetHashCode | Gets the hash code for this base unit. |
![]() | GetName | Gets the unit full name |
![]() | Multiply | Multiples this unit with the specified unit and returns the resulting unit and a number |
![]() | Pow | Raises this unit to the specified power |
![]() | Serialize | |
![]() | Sqrt | Determines the square root of this unit. Internally calls Pow(0.5) |
![]() | Swap | Flips the unit numerator and denomiator. Identical to the raise to power -1. |
![]() | ToString | Gets a string representation of this unit |
![]() | TryConvertTo | Overloaded. Gets the conversion factor for converting a quantity measured in this unit to the target unit. Returns true if the conversion is possible, otherwise returns false. |
![]() | TryConvertToPixels | Gets the conversion factor for converting a quantity measured in this unit to the pixel unit for the specified resolution. Returns true if the conversion is possible, otherwise returns false. |
![]() ![]() | TryGetUnitByAbbreviation | Tries to get the simple unit with the specified abbreviation. |