KiCad PCB EDA Suite
Loading...
Searching...
No Matches
arc_geom_manager.cpp File Reference
#include <preview_items/arc_geom_manager.h>
#include <math/util.h>
#include <geometry/eda_angle.h>
#include <trigo.h>

Go to the source code of this file.

Functions

static EDA_ANGLE snapAngle (const EDA_ANGLE &aAngle)
 < Snap an angle to the nearest 45 degrees
 

Function Documentation

◆ snapAngle()

static EDA_ANGLE snapAngle ( const EDA_ANGLE aAngle)
static

< Snap an angle to the nearest 45 degrees

Definition at line 34 of file arc_geom_manager.cpp.

References ANGLE_45, and KiROUND().

Referenced by KIGFX::PREVIEW::ARC_GEOM_MANAGER::setEnd(), and KIGFX::PREVIEW::ARC_GEOM_MANAGER::setStart().