Click or drag to resize

IMcSpatial2DCalibConvertValueBetweenUnits Method

Convert a value from one unit to another unit

Namespace:  MediaCy.IQL.Calibrations.NonLinear
Assembly:  MediaCy.IQL.Calibrations.NonLinear (in MediaCy.IQL.Calibrations.NonLinear.dll) Version: 10.0.6912.0
Syntax
VB
Sub ConvertValueBetweenUnits ( 
	dValue As Double,
	OldUnit As mcSpatial2DUnit,
	NewUnit As mcSpatial2DUnit,
	<OutAttribute> ByRef pVal As Double,
	Optional ReferenceWaveNumber As Double = -1
)

Parameters

dValue
Type: SystemDouble
OldUnit
Type: MediaCy.IQL.Calibrations.NonLinearmcSpatial2DUnit
NewUnit
Type: MediaCy.IQL.Calibrations.NonLinearmcSpatial2DUnit
pVal
Type: SystemDouble
ReferenceWaveNumber (Optional)
Type: SystemDouble
Remarks
Can not convert between units in different spaces. The ReferenceWaveNumber should be set positive while converting between mcs2uWaveNumberR and other frequency units. dValue should not be 0 while converting between units NanometerF,Micro, Angstrom and other frequency units. An error will be returned if try to convert units in different spaces, or if ReferenceWaveNumber is not set positive while converting between mcs2uWaveNumberR and other frequency units, or if dValue==0 while converting between units NanometerF,Micro,Angstrom and other frequency units.
See Also