Synopsis

PDX_MSGT gdx_UnitsConversionFactor(long option, int units_in, int units_out, double *scale)

Purpose

Determine the scaling factor to convert Units

Description

This routine will return the scaling factor between input and output units that exist in the GDX Units Description.

First determines scaling factor to convert input units to inches. Then adjusts scaling factor so it will convert to desired output units.

Input

option

Options(not used)

units_in

Units flag from GDX Unit list

units_out

Units flag from GDX Unit list .nf GDX Unit List GDX_MILES, GDX_FEET, GDX_INCHES, GDX_MILS, GDX_MICROINCHES, GDX_KILOMETERS, GDX_HECTROMETERS, GDX_DECAMETERS, GDX_METERS, GDX_DECIMETERS, GDX_CENTIMETERS, GDX_MILLIMETERS, GDX_MICRONS .fi

Output

scale

Scaling factor

Return

      GDX_INVALID_UNIT_FLAG
      .fi
    History
      06-Mar-01 KLK; Version 3.2.5
                     Changed format of man page.
      01-Feb-99 BHH; Version 3.1.1
                     closed off comment on start processing line
      14-Jul-98 DCK; Version 3.0.1
                     Removed #include iges_Interface.h
      05-May-98 SRA; Version 3.0.1
                     Created from iges_ConvertUnits.