|
LRAUV
revA
|
Contains the AuvMath class declaration. More...

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... | |
Contains the AuvMath class declaration.
Copyright (c) 2007,2008,2009 MBARI MBARI Proprietary Information. All Rights Reserved
| #define D2R | ( | x | ) | ( ( x ) * M_PI / 180.0 ) |
A macro for converting degrees to radians.
Referenced by NavChartDb::addEncData(), HFRadarModelCalc::HFRadarModelCalc(), Simulator::loadParams(), AHRS_sp3003D::ParseHCXDR(), DVL_micro::processNQ1(), MagneticVariation::Radian(), PNI_TCM::receiveGetDataResp(), AHRS_sp3003D::receiveHeadingMagBin(), AHRS_sp3003D::receivePitchRollBin(), RudderServo::runnable(), ThrusterServo::runnable(), EncReader::simplifyArea(), Location_Test::testAtBearing(), MagneticVariation_Test::testDefault(), Location_Test::testGetBearing(), Location_Test::testGetDistance(), Location_Test::testGetDistanceFast(), Datum_Test::testLatLonToUtm(), AuvMath_Test::testModPi(), Location_Test::testNorthingsDelta(), OffshoreEnvelope_Test::testRun(), Datum_Test::testUtmToLatLon(), and WetLabsBB2FL::writeData().
| #define M_1_2PI (0.15915494309189533577) |
Referenced by AuvMath::ModPi().
| #define M_2PI (6.28318530717958647692) |
Referenced by NavChartDb::CalcLonIndex(), Circle::initialize(), AuvMath::ModPi(), and WetLabsBB2FL::writeData().
| #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.
Referenced by AuvMath::Max(), Simulator::run(), Timestamp::toString(), and Timespan::toString().
| #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.
Referenced by AHRS_sp3003D::getCompassHdg(), AHRS_sp3003D::getPitchRoll(), AHRS_sp3003D::getTrueHdg(), NAL9602::goodGGAFixIndicator(), NAL9602::goodRMCFixIndicator(), AuvMath::Min(), NAL9602::parseGGAFix(), NAL9602::parseRMCFix(), AbstractBlobReader::read1DPtr(), AbstractBlobReader::read2DArray(), AbstractBlobReader::read2DPtr(), AbstractBlobReader::read3DArray(), AbstractBlobReader::read3DPtr(), Timestamp::toString(), Timespan::toString(), and SyslogEntry::write().
| #define R2D | ( | x | ) | ( ( x ) * 180.0 / M_PI) |
A macro for converting radians to degrees.
Referenced by ThrusterServo::isNeeded(), GoToSurface::loadParams(), HFRCMVirtualSurfaceDrifter::lookupEmpiricalOrthogonalFunctions(), Simulator::publishState(), MagneticVariation::Radian(), Rowe_600::readBottomTrackMatrix(), ReinitializeHFRCMVirtualSurfaceDrifter::run(), HFRadarModelPoint::run(), HFRCMVirtualSurfaceDrifter::run(), Waypoint::runIfUnsatisfied(), HFRadarModelPoint::runIfUnsatisfied(), Lane::runIfUnsatisfied(), ElevatorServo::runnable(), RudderServo::runnable(), ThrusterServo::runnable(), HFRCMVirtualSurfaceDrifter::setLocation(), Location_Test::testAtBearing(), Location_Test::testGetBearing(), Datum_Test::testLatLonToUtm(), Location_Test::testNorthingsDelta(), and Datum_Test::testUtmToLatLon().
| #define UINT16_MAX (65535) |
Referenced by SyslogEntry::write().
| #define UINT32_MAX (4294967295U) |