source: issm/branches/trunk-jpl-damage/src/c/shared/Bamg/OppositeAngle.h@ 12878

Last change on this file since 12878 was 12878, checked in by cborstad, 13 years ago

merged trunk-jpl into trunk-jpl-damage through revision 12877

File size: 295 bytes
Line 
1#ifndef _OPPOSITEANGLE_H_
2#define _OPPOSITEANGLE_H_
3
4#include "../../classes/bamg/include.h"
5
6/*Return the opposite angle modulo 2 Pi*/
7namespace bamg {
8 inline float OppositeAngle(float a){return a<0 ? fPi+a:a-fPi;}
9 inline double OppositeAngle(double a){return a<0 ? Pi+a:a- Pi;}
10}
11
12#endif
Note: See TracBrowser for help on using the repository browser.