KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EASYPC_PCB::FRAME Struct Reference

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 {}
 

Detailed Description

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.

Member Function Documentation

◆ Angle()

EDA_ANGLE EASYPC_PCB::FRAME::Angle ( int32_t aMilliDegrees)
static

◆ Length()

int EASYPC_PCB::FRAME::Length ( int64_t aLength) const
Exceptions
IO_ERRORwhen the length lies outside the coordinate range KiCad computes in

Definition at line 476 of file easypc_pcb_items.cpp.

◆ ToKiCad() [1/3]

VECTOR2I EASYPC_PCB::FRAME::ToKiCad ( const EASYPC::POINT32 & aPoint) const
inline

Definition at line 74 of file easypc_pcb_items.h.

References ToKiCad(), EASYPC::POINT32::X, and EASYPC::POINT32::Y.

Referenced by ToKiCad().

◆ ToKiCad() [2/3]

VECTOR2I EASYPC_PCB::FRAME::ToKiCad ( const VECTOR2D & aPoint) const

◆ ToKiCad() [3/3]

VECTOR2I EASYPC_PCB::FRAME::ToKiCad ( int32_t aX,
int32_t aY ) const
inline
Exceptions
IO_ERRORwhen 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().

Member Data Documentation

◆ Offset

VECTOR2I EASYPC_PCB::FRAME::Offset {}

Definition at line 70 of file easypc_pcb_items.h.

Referenced by EASYPC_PCB::ArcForm(), and ToKiCad().

◆ Origin

EASYPC::POINT32 EASYPC_PCB::FRAME::Origin

Definition at line 69 of file easypc_pcb_items.h.

Referenced by EASYPC_PCB::ArcForm(), and ToKiCad().


The documentation for this struct was generated from the following files: