|
KiCad PCB EDA Suite
|
Native to KiCad coordinates: scale by 100 nm, flip Y and move the native origin to the KiCad offset. More...
#include <easypc_pcb_items.h>
Public Member Functions | |
| VECTOR2I | ToKiCad (int32_t aX, int32_t aY) const |
| VECTOR2I | ToKiCad (const EASYPC::POINT32 &aPoint) const |
| VECTOR2I | ToKiCad (const VECTOR2D &aPoint) const |
| int | Length (int64_t aLength) const |
Static Public Member Functions | |
| static EDA_ANGLE | Angle (int32_t aMilliDegrees) |
Public Attributes | |
| EASYPC::POINT32 | Origin |
| VECTOR2I | Offset {} |
Native to KiCad coordinates: scale by 100 nm, flip Y and move the native origin to the KiCad offset.
Definition at line 67 of file easypc_pcb_items.h.
|
static |
Definition at line 482 of file easypc_pcb_items.cpp.
References EASYPC::AngleToDegrees(), DEGREES_T, and EDA_ANGLE::Normalize().
Referenced by EASYPC_PCB::ApplyTextPosition(), and EASYPC_PCB::CreatePad().
| int EASYPC_PCB::FRAME::Length | ( | int64_t | aLength | ) | const |
| IO_ERROR | when the length lies outside the coordinate range KiCad computes in |
Definition at line 476 of file easypc_pcb_items.cpp.
|
inline |
Definition at line 74 of file easypc_pcb_items.h.
References ToKiCad(), EASYPC::POINT32::X, and EASYPC::POINT32::Y.
Referenced by ToKiCad().
Definition at line 461 of file easypc_pcb_items.cpp.
References _, std::abs(), EASYPC::COORD_LIMIT, KiROUND(), Offset, Origin, THROW_IO_ERROR, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inline |
| IO_ERROR | when the point lies outside the coordinate range KiCad computes in |
Definition at line 73 of file easypc_pcb_items.h.
References ToKiCad().
Referenced by EASYPC_PCB::AddShapeItem(), EASYPC_PCB::ApplyTextPosition(), EASYPC_PCB::ArcForm(), EASYPC_PCB::CreatePad(), and ToKiCad().
| VECTOR2I EASYPC_PCB::FRAME::Offset {} |
Definition at line 70 of file easypc_pcb_items.h.
Referenced by EASYPC_PCB::ArcForm(), and ToKiCad().
| EASYPC::POINT32 EASYPC_PCB::FRAME::Origin |
Definition at line 69 of file easypc_pcb_items.h.
Referenced by EASYPC_PCB::ArcForm(), and ToKiCad().