KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EDA_IU_SCALE Struct Reference

#include <base_units.h>

Public Member Functions

constexpr EDA_IU_SCALE (double aIUPerMM)
 
constexpr double IUTomm (int iu) const
 
constexpr int mmToIU (double mm) const
 
constexpr int MilsToIU (int mils) const
 
constexpr int IUToMils (int iu) const
 

Public Attributes

const double IU_PER_MM
 
const double IU_PER_MILS
 
const double IU_PER_PS { 1e6 }
 Internal time units are attoseconds.
 
const double IU_PER_PS_PER_MM { 1e6 }
 Internal delay units are attoseconds/mm.
 
const double MM_PER_IU
 

Detailed Description

Definition at line 74 of file base_units.h.

Constructor & Destructor Documentation

◆ EDA_IU_SCALE()

EDA_IU_SCALE::EDA_IU_SCALE ( double aIUPerMM)
inlineconstexpr

Definition at line 83 of file base_units.h.

References IU_PER_MILS, IU_PER_MM, and MM_PER_IU.

Member Function Documentation

◆ IUToMils()

int EDA_IU_SCALE::IUToMils ( int iu) const
inlineconstexpr

Definition at line 103 of file base_units.h.

References IU_PER_MILS.

◆ IUTomm()

double EDA_IU_SCALE::IUTomm ( int iu) const
inlineconstexpr

Definition at line 90 of file base_units.h.

References IU_PER_MM.

◆ MilsToIU()

int EDA_IU_SCALE::MilsToIU ( int mils) const
inlineconstexpr

Definition at line 97 of file base_units.h.

References IU_PER_MILS.

◆ mmToIU()

int EDA_IU_SCALE::mmToIU ( double mm) const
inlineconstexpr

Definition at line 92 of file base_units.h.

References IU_PER_MM.

Member Data Documentation

◆ IU_PER_MILS

const double EDA_IU_SCALE::IU_PER_MILS

◆ IU_PER_MM

◆ IU_PER_PS

const double EDA_IU_SCALE::IU_PER_PS { 1e6 }

Internal time units are attoseconds.

Definition at line 78 of file base_units.h.

◆ IU_PER_PS_PER_MM

const double EDA_IU_SCALE::IU_PER_PS_PER_MM { 1e6 }

Internal delay units are attoseconds/mm.

Definition at line 79 of file base_units.h.

◆ MM_PER_IU

const double EDA_IU_SCALE::MM_PER_IU

Definition at line 80 of file base_units.h.

Referenced by EDA_IU_SCALE().


The documentation for this struct was generated from the following file: