KiCad PCB EDA Suite
|
#include <eda_units.h>
#include <fmt/core.h>
#include <math/util.h>
#include <macros.h>
#include <charconv>
#include <wx/translation.h>
Go to the source code of this file.
Macros | |
#define | IU_TO_MM(x, scale) ( x / scale.IU_PER_MM ) |
#define | IU_TO_IN(x, scale) ( x / scale.IU_PER_MILS / 1000 ) |
#define | IU_TO_MILS(x, scale) ( x / scale.IU_PER_MILS ) |
#define | MM_TO_IU(x, scale) ( x * scale.IU_PER_MM ) |
#define | IN_TO_IU(x, scale) ( x * scale.IU_PER_MILS * 1000 ) |
#define | MILS_TO_IU(x, scale) ( x * scale.IU_PER_MILS ) |
Functions | |
static void | removeTrailingZeros (wxString &aText) |
#define IN_TO_IU | ( | x, | |
scale | |||
) | ( x * scale.IU_PER_MILS * 1000 ) |
Definition at line 256 of file eda_units.cpp.
#define IU_TO_IN | ( | x, | |
scale | |||
) | ( x / scale.IU_PER_MILS / 1000 ) |
Definition at line 253 of file eda_units.cpp.
#define IU_TO_MILS | ( | x, | |
scale | |||
) | ( x / scale.IU_PER_MILS ) |
Definition at line 254 of file eda_units.cpp.
#define IU_TO_MM | ( | x, | |
scale | |||
) | ( x / scale.IU_PER_MM ) |
Definition at line 252 of file eda_units.cpp.
#define MILS_TO_IU | ( | x, | |
scale | |||
) | ( x * scale.IU_PER_MILS ) |
Definition at line 257 of file eda_units.cpp.
#define MM_TO_IU | ( | x, | |
scale | |||
) | ( x * scale.IU_PER_MM ) |
Definition at line 255 of file eda_units.cpp.
|
static |
Definition at line 32 of file eda_units.cpp.
Referenced by EDA_UNIT_UTILS::UI::StringFromValue().