Skip to main content

Motion Standalone Postprocessor C# library 2024 R2

Class Unit

Last update: 03.07.2024

Namespace: VM
Assembly: VM.dll

This class is to represent the convert factor.

public sealed class Unit.ConvertFactor

Inheritance

objectUnit.ConvertFactor

Constructors

ConvertFactor(Unit, Unit)

Initializes a new instance of the class

public ConvertFactor(Unit unitFrom, Unit unitTo)

Parameters

unitFrom Unit

The unit from.

unitTo Unit

The unit to.

ConvertFactor(Unit, ConvertFactor)

Initializes a new instance of the class

public ConvertFactor(Unit unitFrom, Unit.ConvertFactor factor)

Parameters

unitFrom Unit

The unit from.

factor Unit.ConvertFactor

The factor.

Properties

Default

Gets the default convert factor

public static Unit.ConvertFactor Default { get; }

Property Value

Unit.ConvertFactor

FromUCF

Gets the from UCF.

public double FromUCF { get; }

Property Value

double

ToUCF

Gets the to UCF.

public double ToUCF { get; }

Property Value

double

this[string]

Gets the convert factor by using indexer

public double this[string stringDimension] { get; }

Property Value

double

Methods

CalculateShiftingUnit(string, double)

Calculate Shifting Unit.

public double CalculateShiftingUnit(string stringType, double value)

Parameters

stringType string

The unit type

value double

The value

Returns

double

The converted value

Dispose()

public void Dispose()