TM_HD marks functions that must compile identically for host and device.
constexpr Coord kNmPerMil
Coord mm_to_nm(double mm)
Converts millimetres to nanometres, rounding half away from zero (KiCad's parser behaviour).
TM_HD_INLINE double nm_to_mm(Coord nm)
std::int64_t Coord
Engine coordinate: signed 64-bit nanometres.