Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
DegreesAndRadians.h
1#ifndef DEGREESANDRADIANS_H
2#define DEGREESANDRADIANS_H
3
4#include<wx/math.h>
5
6// Convert between degrees and radians.
7inline double wxDegToRad(double deg) { return (deg * M_PI) / 180.0; }
8inline double wxRadToDeg(double rad) { return (rad * 180.0) / M_PI; }
9
10#endif // DEGREESANDRADIANS_H