KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_preview_3d_model.cpp File Reference

Go to the source code of this file.

Functions

static wxString evaluateTextCtrl (const wxString &aValue)
 
static double normalizeRotation (double aRotation)
 Normalize a rotation in degrees to the half-open range (-MAX_ROTATION, MAX_ROTATION].
 
static double rotationFromString (const wxString &aValue)
 

Function Documentation

◆ evaluateTextCtrl()

static wxString evaluateTextCtrl ( const wxString & aValue)
static

◆ normalizeRotation()

static double normalizeRotation ( double aRotation)
static

Normalize a rotation in degrees to the half-open range (-MAX_ROTATION, MAX_ROTATION].

Matches the convention used by EDA_ANGLE::Normalize180(), so 198 maps to -162 and 540 maps to 180.

Definition at line 87 of file panel_preview_3d_model.cpp.

References MAX_ROTATION.

Referenced by PANEL_PREVIEW_3D_MODEL::doIncrementRotation(), PANEL_PREVIEW_3D_MODEL::onMouseWheelRot(), and rotationFromString().

◆ rotationFromString()