UnitConversion Class

Convert numbers with physical units from given input to output units (i.e. ft to m).

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public class UnitConversion
Inheritance
Object    UnitConversion

Constructors

UnitConversion(String) Initializes a new instance of the UnitConversion class. create new units conversion object with unit conversion factor.
UnitConversion(Double, String) Initializes a new instance of the UnitConversion class. create new units conversion object.

Properties

unit Gets units as string.
unitB Gets bracketed units as string.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
toBase(Double) Converts given number to the base unit of the conversion.
toBase(Double) converts given array to the base unit of the conversion.
toBase(ListVector3) converts given vector to the base unit of the conversion.
toBase(ListDouble) converts given list of numbers to the base unit of the conversion.
toBase(Point3) converts given point to the base unit of the conversion.
toBase(Vector3) converts given vector to the base unit of the conversion.
toBaseMeshT Converts vertex coordinates of given mesh to the base unit of the conversion.
ToString Output the unit as a string.
(Overrides ObjectToString)
toUnit(Double) Converts number from the base unit to the conversion.
toUnit(Double) converts given array from the base unit of the conversion.
toUnit(IEnumerableVector3) converts given IEnumerable of vectors from the base unit of the conversion.
toUnit(IEnumerableIEnumerableVector3) converts given IEnumerable of vectors from the base unit of the conversion.
toUnit(IEnumerableDouble) converts given IEnumerable of numbers from the base unit of the conversion.
toUnit(IListVector3) converts given list of vectors from the base unit of the conversion.
toUnit(IListIListIListIListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(IListIListIListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(IListIListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(IListDouble) converts given IList of numbers from the base unit of the conversion.
toUnit(IReadOnlyListDouble) converts given IList of numbers from the base unit of the conversion.
toUnit(ListVector3) converts given list of vectors from the base unit of the conversion.
toUnit(ListListVector3) converts given list of list of vectors from the base unit of the conversion.
toUnit(ListListListListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(ListListListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(ListListDouble) converts given list of list of numbers from the base unit of the conversion.
toUnit(ListDouble) converts given list of numbers from the base unit of the conversion.
toUnit(Point3) converts given point from the base unit of the conversion.
toUnit(Vector3) converts given vector from the base unit of the conversion.
toUnitMeshT Converts vertex coordinates of given mesh from the base unit to the conversion.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)
ToBase Converts given list of numbers to the base unit of the conversion.
(Defined by ExtensionsUtilities)

See Also