MathEngine
Home Page       Structures       File List       Functions and Macros      

MePrecision.h File Reference

Precision and platform dependent globals. More...

#include <math.h>
#include <float.h>

Defines

#define ME_MIN_EPSILON   (1.2e-7)
 Maximum achievable fractional accuracy. More...

#define ME_SMALL_EPSILON   (1.0e-6)
 "High" fractional accuracy. More...

#define ME_MEDIUM_EPSILON   (1.0e-3)
 "Moderate" fractional accuracy. More...


Typedefs

typedef MeReal MeVector3 [3]
 MathEngine 3 long MeReal vector. More...

typedef MeReal MeVector4 [4]
 MathEngine 4 long MeReal vector. More...

typedef MeReal MeMatrix3 [3][3]
 MathEngine 3x3 MeReal matrix. More...

typedef MeReal MeMatrix4 [4][4]
 MathEngine 4x4 MeReal matrix. More...


Detailed Description

Precision and platform dependent globals.


Define Documentation

#define ME_ARE_EQUAL_3VEC_TOL( x, y, e )

Initializer:

\
                                   (ME_ARE_EQUAL_TOL( x[0], y[0], e ) && \
                                    ME_ARE_EQUAL_TOL( x[1], y[1], e ) && \
                                    ME_ARE_EQUAL_TOL( x[2], y[2], e ))

#define ME_ARE_EQUAL_4VEC_TOL( x, y, e )

Initializer:

\
                                   (ME_ARE_EQUAL_3VEC_TOL( x, y, e ) && \
                                    ME_ARE_EQUAL_TOL( x[3], y[3], e ))

#define ME_ARE_EQUAL_TOL( x, y, e )

Initializer:

(ME_IS_ZERO_TOL(y,e) ? ME_IS_ZERO_TOL(x,e) \
                                  : MeFabs(((x)-(y))/(y)) < (e))

#define ME_MEDIUM_EPSILON   (1.0e-3)

"Moderate" fractional accuracy.

#define ME_MIN_EPSILON   (1.2e-7)

Maximum achievable fractional accuracy.

#define ME_SMALL_EPSILON   (1.0e-6)

"High" fractional accuracy.


Typedef Documentation

typedef MeReal MeMatrix3[3][3]

MathEngine 3x3 MeReal matrix.

typedef MeReal MeMatrix4[4][4]

MathEngine 4x4 MeReal matrix.

typedef MeReal MeVector3[3]

MathEngine 3 long MeReal vector.

typedef MeReal MeVector4[4]

MathEngine 4 long MeReal vector.


MathEngine Utilities: MathEngine Definitions and Tools - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:59 2000

Copyright MathEngine PLC 2000, all rights reserved.