mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 15:02:58 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
31 lines
508 B
C
31 lines
508 B
C
#ifndef TRICK_MATH_H
|
|
#define TRICK_MATH_H
|
|
|
|
/*
|
|
* Function prototypes for all functions in ${TRICK_HOME}/sim_services/math
|
|
*/
|
|
|
|
#include <math.h>
|
|
|
|
#ifndef M_ABS
|
|
#define M_ABS(x) ((x) < 0 ? -(x) : (x))
|
|
#endif
|
|
|
|
#if ( __ghs )
|
|
#ifndef M_PI
|
|
#define M_PI 3.14159265358979323846
|
|
#endif
|
|
|
|
#ifndef M_PI_2
|
|
#define M_PI_2 1.570796326794896619231
|
|
#endif
|
|
#endif
|
|
|
|
#include "vector_macros.h"
|
|
#include "matrix_macros.h"
|
|
#include "quat_macros.h"
|
|
#include "trick_math_error.h"
|
|
#include "trick_math_proto.h"
|
|
|
|
#endif
|