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

Go to the source code of this file.

Macros

#define MIN_ZOOM   0.10f
 
#define MAX_ZOOM   1.25f
 

Functions

void normalise2PI (float &aAngle)
 

Macro Definition Documentation

◆ MAX_ZOOM

#define MAX_ZOOM   1.25f

Definition at line 54 of file ccamera.cpp.

◆ MIN_ZOOM

#define MIN_ZOOM   0.10f

Definition at line 53 of file ccamera.cpp.

Function Documentation

◆ normalise2PI()

void normalise2PI ( float &  aAngle)
inline

Definition at line 35 of file ccamera.cpp.

36 {
37  while( aAngle > 0.0 )
38  aAngle -= M_PI*2;
39 
40  while( aAngle < 0.0 )
41  aAngle += M_PI*2;
42 }

Referenced by CCAMERA::updateRotationMatrix().