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 double rotationFromString (const wxString &aValue)
 Ensure -MAX_ROTATION <= rotation <= MAX_ROTATION.
 

Function Documentation

◆ rotationFromString()

static double rotationFromString ( const wxString &  aValue)
static

Ensure -MAX_ROTATION <= rotation <= MAX_ROTATION.

Parameters

a aRotation will be normalized between -MAX_ROTATION and MAX_ROTATION.

Definition at line 228 of file panel_preview_3d_model.cpp.

References DEGREES, EDA_UNIT_UTILS::UI::DoubleValueFromString(), KiROUND(), MAX_ROTATION, and unityScale.

Referenced by PANEL_PREVIEW_3D_MODEL::updateOrientation().