VPSpectralConverter ConvertCoefficient Method (Double, AbsorptionCoefficientUnit, MolarUnit)Virtual Photonics - VTS Library
Virtual Photonics
Method to convert coefficient values

Namespace: Vts.SpectralMapping
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static double ConvertCoefficient(
	this double CoefficientValue,
	AbsorptionCoefficientUnit Unit,
	MolarUnit MolarUnit
)

Parameters

CoefficientValue
Type: OnlineSystem Double
The coefficient value to convert
Unit
Type: Vts AbsorptionCoefficientUnit
An enum representing the units of the value to convert
MolarUnit
Type: Vts MolarUnit
An enum to represent a molar based coefficient

Return Value

Type: OnlineDouble
The converted value as a double

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also