Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgMath.h File Reference


Detailed Description

Math utility functions.

Definition in file SgMath.h.

#include <cmath>

Go to the source code of this file.

Namespaces

namespace  SgMath

Defines

#define SG_SQRT2   1.41421356237309504880
 Square-root of 2.

Functions

int SgMath::RoundToInt (double v)
 Round to the closest integer value.
int SgMath::RoundToInt (double v)
 Round to the closest integer value.


Define Documentation

#define SG_SQRT2   1.41421356237309504880

Square-root of 2.

Can be used instead of M_SQRT2 to support systems that don't define BSD math constants (Mac OS X Tiger?)

Definition at line 18 of file SgMath.h.


17 Jun 2010 Doxygen 1.4.7