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

Last change on this file since 11427 was 3913, checked in by Eric.Larour, 15 years ago

Moved all objects in Bamg to objects directory.
Moved all solutions from parallel to solutoins.
Moved all modules from top c/ directory to c/modules directory
cleaned up all object dependencies in Bamg/objects (fiouh!)
That will do for the week-end:)

File size: 295 bytes
Line 
1#ifndef _OPPOSITEANGLE_H_
2#define _OPPOSITEANGLE_H_
3
4#include "../../objects/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.