Click or drag to resize

UnitConversion Class

Convert numbers with physical units from given input to output units (i.e. ft to m)
Inheritance Hierarchy
SystemObject
  Karamba.UtilitiesUnitConversion

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class UnitConversion

The UnitConversion type exposes the following members.

Constructors
  NameDescription
Public methodUnitConversion(String)
create new units conversion object with unit conversion factor
Public methodUnitConversion(Double, String)
create new units conversion object
Top
Properties
  NameDescription
Public propertyunit
return units as string
Public propertyunitB
return bracketed units as string
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodtoBase(ListDouble)
converts given list of numbers to the base unit of the conversion
Public methodtoBase(Double)
converts given number to the base unit of the conversion
Public methodtoBase(Double)
converts given array to the base unit of the conversion
Public methodtoBase(Point3)
converts given point to the base unit of the conversion
Public methodtoBase(Vector3)
converts given vector to the base unit of the conversion
Public methodtoBase(ListVector3)
converts given vector to the base unit of the conversion
Public methodtoBaseMeshT
converts vertex coordinates of given mesh to the base unit of the conversion
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodtoUnit(ListListDouble)
converts given list of list of numbers from the base unit of the conversion
Public methodtoUnit(ListDouble)
converts given list of numbers from the base unit of the conversion
Public methodtoUnit(Double)
converts number from the base unit of the conversion
Public methodtoUnit(Double)
converts given array from the base unit of the conversion
Public methodtoUnit(Point3)
converts given point from the base unit of the conversion
Public methodtoUnit(Vector3)
converts given vector from the base unit of the conversion
Public methodtoUnit(ListVector3)
converts given list of vectors from the base unit of the conversion
Top
Extension Methods
  NameDescription
Public Extension MethodtoBase
converts given list of numbers to the base unit of the conversion
(Defined by UnitConversionExtension.)
Top
See Also