92 constexpr inline int mmToIU(
double mm )
const
97 constexpr inline int MilsToIU(
int mils )
const
100 return int( x < 0 ? x - 0.5 : x + 0.5 );
107 return static_cast<int>( mils < 0 ? mils - 0.5 : mils + 0.5 );
110 constexpr inline int64_t
IUToNm(
int iu )
const
112 return static_cast<int64_t
>( iu ) *
static_cast<int64_t
>( 1000000.0 /
IU_PER_MM );
115 constexpr inline int NmToIU( int64_t nm )
const
117 double iu =
static_cast<double>( nm ) *
IU_PER_MM / 1000000.0;
118 return static_cast<int>( iu < 0 ? iu - 0.5 : iu + 0.5 );
121 constexpr inline double NmToIUD( int64_t nm )
const
123 return static_cast<double>( nm ) *
IU_PER_MM / 1000000.0;
constexpr EDA_IU_SCALE schIUScale
constexpr double SCH_IU_PER_MM
Schematic internal units 1=100nm.
constexpr int ARC_HIGH_DEF
constexpr double PCB_IU_PER_MM
Pcbnew IU is 1 nanometer.
constexpr double GERB_IU_PER_MM
some macros and functions to convert a value in mils, decimils or mm to the internal unit used in pcb...
constexpr EDA_IU_SCALE drawSheetIUScale
constexpr EDA_IU_SCALE pcbIUScale
constexpr int ARC_LOW_DEF
constexpr double ARC_HIGH_DEF_MM
constexpr EDA_IU_SCALE unityScale
constexpr EDA_IU_SCALE gerbIUScale
constexpr double ARC_LOW_DEF_MM
constexpr double PL_IU_PER_MM
Internal units in micron (should be enough).
constexpr double IUTomm(int iu) const
constexpr double NmToIUD(int64_t nm) const
constexpr int IUToMils(int iu) const
const double IU_PER_PS
Internal time units are attoseconds.
constexpr EDA_IU_SCALE(double aIUPerMM)
constexpr int MilsToIU(int mils) const
const double IU_PER_PS_PER_MM
Internal delay units are attoseconds/mm.
constexpr int mmToIU(double mm) const
constexpr int NmToIU(int64_t nm) const
constexpr int64_t IUToNm(int iu) const