Eneboo - Documentación para desarrolladores
'defines' | Funciones
Referencia del Archivo src/qwt/src/qwt_math.h
#include <math.h>
#include <qpoint.h>
#include "qwt_global.h"
#include "qwt_double_rect.h"

Ir al código fuente de este archivo.

'defines'

#define qwtMax   QMAX
#define qwtMin   QMIN
#define qwtAbs   QABS
#define LOG10_2   0.30102999566398119802
#define LOG10_3   0.47712125471966243540
#define LOG10_5   0.69897000433601885749
#define M_2PI   6.28318530717958623200
#define LOG_MIN   1.0e-100
 Mininum value for logarithmic scales.
#define LOG_MAX   1.0e100
 Maximum value for logarithmic scales.
#define M_E   2.7182818284590452354
#define M_LOG2E   1.4426950408889634074
#define M_LOG10E   0.43429448190325182765
#define M_LN2   0.69314718055994530942
#define M_LN10   2.30258509299404568402
#define M_PI   3.14159265358979323846
#define M_PI_2   1.57079632679489661923
#define M_PI_4   0.78539816339744830962
#define M_1_PI   0.31830988618379067154
#define M_2_PI   0.63661977236758134308
#define M_2_SQRTPI   1.12837916709551257390
#define M_SQRT2   1.41421356237309504880
#define M_SQRT1_2   0.70710678118654752440

Funciones

QWT_EXPORT double qwtGetMin (const double *array, int size)
 Find the smallest value in an array.
QWT_EXPORT double qwtGetMax (const double *array, int size)
 Find the largest value in an array.
int qwtSign (double x)
 Return the sign.
double qwtSqr (const double x)
 Return the square of a number.
template<class T >
qwtLim (const T &x, const T &x1, const T &x2)
 Limit a value to fit into a specified interval.
QPoint qwtPolar2Pos (const QPoint &pole, double radius, double angle)
QPoint qwtDegree2Pos (const QPoint &pole, double radius, double angle)
QwtDoublePoint qwtPolar2Pos (const QwtDoublePoint &pole, double radius, double angle)
QwtDoublePoint qwtDegree2Pos (const QwtDoublePoint &pole, double radius, double angle)
double qwtRound (double value)
 Rounding of doubles, like qRound for integers.

Documentación de los 'defines'

#define LOG10_2   0.30102999566398119802
#define LOG10_3   0.47712125471966243540
#define LOG10_5   0.69897000433601885749
#define LOG_MAX   1.0e100

Maximum value for logarithmic scales.

#define LOG_MIN   1.0e-100

Mininum value for logarithmic scales.

#define M_1_PI   0.31830988618379067154
#define M_2_PI   0.63661977236758134308
#define M_2_SQRTPI   1.12837916709551257390
#define M_2PI   6.28318530717958623200
#define M_E   2.7182818284590452354
#define M_LN10   2.30258509299404568402
#define M_LN2   0.69314718055994530942
#define M_LOG10E   0.43429448190325182765
#define M_LOG2E   1.4426950408889634074
#define M_PI   3.14159265358979323846
#define M_PI_2   1.57079632679489661923
#define M_PI_4   0.78539816339744830962
#define M_SQRT1_2   0.70710678118654752440
#define M_SQRT2   1.41421356237309504880
#define qwtAbs   QABS
#define qwtMax   QMAX
#define qwtMin   QMIN

Documentación de las funciones

QPoint qwtDegree2Pos ( const QPoint pole,
double  radius,
double  angle 
) [inline]
QwtDoublePoint qwtDegree2Pos ( const QwtDoublePoint pole,
double  radius,
double  angle 
) [inline]
QWT_EXPORT double qwtGetMax ( const double *  array,
int  size 
)

Find the largest value in an array.

Parámetros:
arrayPointer to an array
sizeArray size
QWT_EXPORT double qwtGetMin ( const double *  array,
int  size 
)

Find the smallest value in an array.

Parámetros:
arrayPointer to an array
sizeArray size
template<class T >
T qwtLim ( const T &  x,
const T &  x1,
const T &  x2 
)

Limit a value to fit into a specified interval.

Parámetros:
xInput value
x1First interval boundary
x2Second interval boundary
QwtDoublePoint qwtPolar2Pos ( const QwtDoublePoint pole,
double  radius,
double  angle 
) [inline]
QPoint qwtPolar2Pos ( const QPoint pole,
double  radius,
double  angle 
) [inline]
double qwtRound ( double  value) [inline]

Rounding of doubles, like qRound for integers.

int qwtSign ( double  x) [inline]

Return the sign.

double qwtSqr ( const double  x) [inline]

Return the square of a number.

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'