ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
unitutils.h
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16
17#ifndef UNIT_UTILS_H
18#define UNIT_UTILS_H
19
20#include <math.h>
21
22
23namespace clockwerk {
24
25 const double TWO_PI = 2.0*M_PI;
26
27 const double DEGREES_TO_RADIANS = M_PI/180.0;
28 const double RADIANS_TO_DEGREES = 180.0/M_PI;
29
30 const double SPEED_OF_LIGHT = 299792458.0;
31
32 const double AU_TO_METERS = 149597870700.0;
33 const double METERS_TO_AU = 1.0/149597870700.0;
34
35}
36
37#endif