|
TraceMaker
C++ API of the engine
|
Integer-nanometre points and KiCad-compatible rotation. More...
#include <cmath>#include <cstdint>#include <numbers>#include "core/hd.hpp"#include "core/units.hpp"Go to the source code of this file.
Classes | |
| struct | tmk::geom::Point |
| struct | tmk::geom::Box |
Namespaces | |
| namespace | tmk |
| namespace | tmk::geom |
Functions | |
| Coord | tmk::geom::kiround (double v) |
| Rounds half away from zero, like KiCad's KiROUND. | |
| double | tmk::geom::norm_deg (double a) |
| Normalises degrees to [0, 360). | |
| Point | tmk::geom::rotate (Point p, double deg) |
| Rotates p by deg degrees the way KiCad does: positive angles turn counter-clockwise on screen in KiCad's y-down coordinates. | |
Integer-nanometre points and KiCad-compatible rotation.
Definition in file point.hpp.