KiCad PCB EDA Suite
units_scales.h File Reference

Go to the source code of this file.

Macros

#define UNIT_MM   1e-3
 
#define UNIT_CM   1e-2
 
#define UNIT_MICRON   1e-6
 
#define UNIT_INCH   (1e-2*2.54)
 
#define UNIT_MIL   (1e-5*2.54)
 
#define UNIT_OZSQFT   (34.40*UNIT_MICRON)
 
#define UNIT_GHZ   1e9
 
#define UNIT_MHZ   1e6
 
#define UNIT_KHZ   1e3
 
#define UNIT_DEGREE   (M_PI/180.0)
 
#define UNIT_RADIAN   1.0
 
#define UNIT_OHM   1.0
 
#define UNIT_KOHM   1e3
 

Macro Definition Documentation

◆ UNIT_CM

#define UNIT_CM   1e-2

Definition at line 32 of file units_scales.h.

◆ UNIT_DEGREE

#define UNIT_DEGREE   (M_PI/180.0)

Definition at line 42 of file units_scales.h.

◆ UNIT_GHZ

#define UNIT_GHZ   1e9

Definition at line 38 of file units_scales.h.

◆ UNIT_INCH

#define UNIT_INCH   (1e-2*2.54)

Definition at line 34 of file units_scales.h.

◆ UNIT_KHZ

#define UNIT_KHZ   1e3

Definition at line 40 of file units_scales.h.

◆ UNIT_KOHM

#define UNIT_KOHM   1e3

Definition at line 46 of file units_scales.h.

◆ UNIT_MHZ

#define UNIT_MHZ   1e6

Definition at line 39 of file units_scales.h.

◆ UNIT_MICRON

#define UNIT_MICRON   1e-6

Definition at line 33 of file units_scales.h.

◆ UNIT_MIL

#define UNIT_MIL   (1e-5*2.54)

Definition at line 35 of file units_scales.h.

◆ UNIT_MM

#define UNIT_MM   1e-3

Definition at line 31 of file units_scales.h.

◆ UNIT_OHM

#define UNIT_OHM   1.0

Definition at line 45 of file units_scales.h.

◆ UNIT_OZSQFT

#define UNIT_OZSQFT   (34.40*UNIT_MICRON)

Definition at line 36 of file units_scales.h.

◆ UNIT_RADIAN

#define UNIT_RADIAN   1.0

Definition at line 43 of file units_scales.h.