/workspaces/astro/sol3-sdk/cpp/sol3/math/conversions.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/math/conversions.h Source File
Space-ng SDK
conversions.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 
3 #pragma once
4 #include <cmath>
5 namespace sol3::math {
6 
10 inline double toRadians(double degrees) { return degrees * M_PI / 180.0; };
11 
15 inline double toDegrees(double radians) { return radians * 180.0 / M_PI; };
16 
17 } // namespace sol3::math
Definition: conversions.h:5
double toRadians(double degrees)
Definition: conversions.h:10
double toDegrees(double radians)
Definition: conversions.h:15