KiCad PCB EDA Suite
dialog_pad_basicshapes_properties.cpp File Reference

basic shapes for pads crude editor. More...

#include <algorithm>
#include <confirm.h>
#include <trigo.h>
#include <pcb_base_frame.h>
#include <base_units.h>
#include <widgets/wx_grid.h>
#include <footprint.h>
#include <math/util.h>
#include <dialog_pad_properties.h>
#include <bitmaps.h>
#include <wx/dcclient.h>

Go to the source code of this file.


void geom_transf (wxPoint &aCoord, const wxPoint &aMove, double aScale, double aRotation)

Detailed Description

basic shapes for pads crude editor.

Definition in file dialog_pad_basicshapes_properties.cpp.

Function Documentation

◆ geom_transf()

void geom_transf ( wxPoint &  aCoord,
const wxPoint &  aMove,
double  aScale,
double  aRotation 

Definition at line 571 of file dialog_pad_basicshapes_properties.cpp.

572 {
573  aCoord.x = KiROUND( aCoord.x * aScale );
574  aCoord.y = KiROUND( aCoord.y * aScale );
575  aCoord += aMove;
576  RotatePoint( &aCoord, aRotation );
577 }
void RotatePoint(int *pX, int *pY, double angle)
Definition: trigo.cpp:229
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:73

References KiROUND(), and RotatePoint().