#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.
|
#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 | IU_TO_PS(x, scale) ( x / scale.IU_PER_PS ) |
|
#define | IU_TO_PS_PER_MM(x, scale) ( x / scale.IU_PER_PS_PER_MM ) |
|
#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 ) |
|
#define | PS_TO_IU(x, scale) ( x * scale.IU_PER_PS ) |
|
#define | PS_PER_MM_TO_IU(x, scale) ( x * scale.IU_PER_PS_PER_MM ) |
|
◆ IN_TO_IU
◆ IU_TO_IN
◆ IU_TO_MILS
◆ IU_TO_MM
◆ IU_TO_PS
#define IU_TO_PS |
( |
|
x, |
|
|
|
scale |
|
) |
| ( x / scale.IU_PER_PS ) |
◆ IU_TO_PS_PER_MM
#define IU_TO_PS_PER_MM |
( |
|
x, |
|
|
|
scale |
|
) |
| ( x / scale.IU_PER_PS_PER_MM ) |
◆ MILS_TO_IU
◆ MM_TO_IU
◆ PS_PER_MM_TO_IU
#define PS_PER_MM_TO_IU |
( |
|
x, |
|
|
|
scale |
|
) |
| ( x * scale.IU_PER_PS_PER_MM ) |
◆ PS_TO_IU
#define PS_TO_IU |
( |
|
x, |
|
|
|
scale |
|
) |
| ( x * scale.IU_PER_PS ) |
◆ removeTrailingZeros()
static void removeTrailingZeros |
( |
wxString & |
aText | ) |
|
|
static |