KiCad PCB EDA Suite
camera.cpp File Reference
#include "camera.h"
#include <wx/log.h>

Go to the source code of this file.

Macros

#define DEFAULT_MIN_ZOOM   0.10f
 
#define DEFAULT_MAX_ZOOM   1.20f
 

Functions

void normalise2PI (float &aAngle)
 

Macro Definition Documentation

◆ DEFAULT_MAX_ZOOM

#define DEFAULT_MAX_ZOOM   1.20f

Definition at line 51 of file camera.cpp.

◆ DEFAULT_MIN_ZOOM

#define DEFAULT_MIN_ZOOM   0.10f

Definition at line 50 of file camera.cpp.

Function Documentation

◆ normalise2PI()

void normalise2PI ( float &  aAngle)
inline

Definition at line 34 of file camera.cpp.

35 {
36  while( aAngle > 0.0 )
37  aAngle -= static_cast<float>( M_PI * 2.0f );
38 
39  while( aAngle < 0.0 )
40  aAngle += static_cast<float>( M_PI * 2.0f );
41 }

Referenced by CAMERA::updateRotationMatrix().