VPSpectralConverter ConvertWavelength Method Virtual Photonics - VTS Library
Virtual Photonics
Method to convert wavelength values

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

public static double ConvertWavelength(
	this double WavelengthValue,
	WavelengthUnit Unit
)

Parameters

WavelengthValue
Type: OnlineSystem Double
The wavelength value to convert
Unit
Type: Vts WavelengthUnit
An enum representing the units of the value to convert

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