LRAUV  revA
AuvMath.h File Reference

Contains the AuvMath class declaration. More...

#include <math.h>
#include "data/Point3D.h"
#include "data/Matrix3x3.h"
Include dependency graph for AuvMath.h:

Go to the source code of this file.

Classes

class  AuvMath
 Contains useful math-related utilities. More...
 

Macros

#define M_2PI   (6.28318530717958647692)
 
#define M_1_2PI   (0.15915494309189533577)
 
#define UINT16_MAX   (65535)
 
#define UINT32_MAX   (4294967295U)
 
#define D2R(x)   ( ( x ) * M_PI / 180.0 )
 A macro for converting degrees to radians. More...
 
#define R2D(x)   ( ( x ) * 180.0 / M_PI)
 A macro for converting radians to degrees. More...
 
#define MIN(a, b)   ( ( ( a ) != ( a ) || ( a ) <= ( b ) ) ? ( a ) : ( b ) != ( b ) || ( a ) > ( b ) ? ( b ) : ( a ) )
 Minimum of two values – also available as AuvMath::Min() template function If either argument is a NaN, will return NaN. More...
 
#define MAX(a, b)   ( ( ( a ) != ( a ) || ( a ) >= ( b ) ) ? ( a ) : ( b ) != ( b ) || ( a ) < ( b ) ? ( b ) : ( a ) )
 Maximum of two values – also available as AuvMath::Max() template function If either argument is a NaN, will return NaN. More...
 

Detailed Description

Contains the AuvMath class declaration.

Copyright (c) 2007,2008,2009 MBARI MBARI Proprietary Information. All Rights Reserved

Macro Definition Documentation

#define M_1_2PI   (0.15915494309189533577)

Referenced by AuvMath::ModPi().

#define M_2PI   (6.28318530717958647692)
#define MAX (   a,
 
)    ( ( ( a ) != ( a ) || ( a ) >= ( b ) ) ? ( a ) : ( b ) != ( b ) || ( a ) < ( b ) ? ( b ) : ( a ) )

Maximum of two values – also available as AuvMath::Max() template function If either argument is a NaN, will return NaN.

Referenced by AuvMath::Max(), Simulator::run(), Timestamp::toString(), and Timespan::toString().

#define MIN (   a,
 
)    ( ( ( a ) != ( a ) || ( a ) <= ( b ) ) ? ( a ) : ( b ) != ( b ) || ( a ) > ( b ) ? ( b ) : ( a ) )
#define UINT16_MAX   (65535)

Referenced by SyslogEntry::write().

#define UINT32_MAX   (4294967295U)