Qt 4.8
|
#include <math.h>
#include <QtCore/qglobal.h>
Go to the source code of this file.
Macros | |
#define | M_PI (3.14159265358979323846) |
#define | QT_SINE_TABLE_SIZE 256 |
Functions | |
qreal | qAcos (qreal v) |
qreal | qAsin (qreal v) |
qreal | qAtan (qreal v) |
qreal | qAtan2 (qreal x, qreal y) |
int | qCeil (qreal v) |
qreal | qCos (qreal v) |
qreal | qExp (qreal v) |
qreal | qFabs (qreal v) |
qreal | qFastCos (qreal x) |
qreal | qFastSin (qreal x) |
int | qFloor (qreal v) |
qreal | qLn (qreal v) |
qreal | qPow (qreal x, qreal y) |
qreal | qSin (qreal v) |
qreal | qSqrt (qreal v) |
qreal | qTan (qreal v) |
Variables | |
Q_CORE_EXPORT const qreal | qt_sine_table [QT_SINE_TABLE_SIZE] |
#define M_PI (3.14159265358979323846) |
Definition at line 261 of file qmath.h.
Referenced by QDeclarativeParentChangePrivate::doChange(), QCoreGraphicsPaintEngine::drawEllipse(), QQuaternion::fromAxisAndAngle(), QMatrix4x4::perspective(), QMatrix4x4::projectedRotate(), qFastCos(), qFastSin(), QMatrix4x4::rotate(), QDeclarativeParentAnimation::transition(), and QUIKitWindow::updateGeometryAndOrientation().
#define QT_SINE_TABLE_SIZE 256 |
Definition at line 59 of file qmath.h.
Referenced by qFastCos(), and qFastSin().
Definition at line 141 of file qmath.h.
Referenced by addCircle(), QLineF::angle(), and QQuaternion::slerp().
Definition at line 189 of file qmath.h.
Referenced by QLineF::angle(), computeAngle(), pathArc(), qt_fetch_conical_gradient(), and QDialPrivate::valueFromPoint().
|
inline |
Definition at line 63 of file qmath.h.
Referenced by QFontEngine::alphaMapForGlyph(), alphaMapFromPath(), QSvgAnimateColor::apply(), QDeclarativePath::createPointCache(), QCommandLinkButtonPrivate::descriptionHeight(), QDeclarativePaintedItem::dirtyCache(), QDeclarativeFlow::doPositioning(), QPaintEngine::drawImage(), QRasterPaintEngine::drawImage(), drawTextItemDecoration(), QOpenGLPaintEngine::drawTiledPixmap(), QTextDocumentLayout::dynamicPageCount(), fetchTransformedBilinear(), QTimeLine::frameForTime(), QDeclarativeRectangle::generateRoundedRect(), generateWavyPixmap(), QRasterPaintEnginePrivate::getPenFunc(), intmaxlog(), QPrintPreviewWidgetPrivate::layoutPages(), QPaintBuffer::metric(), QDeclarativePaintedItem::paint(), pathArc(), QPdf::patternForBrush(), QGLPixmapBlurFilter::processGL(), qDrawBorderPixmap(), qSubImage(), qt_scale_image_16bit(), qt_scale_image_32bit(), qt_transform_image(), QMdi::RegularTiler::rearrange(), QComboBoxPrivate::recomputeSizeHint(), QMdiAreaPrivate::resizeToMinimumTileSize(), QSvgAnimateTransform::resolveMatrix(), QSvgPaintEngine::saveGradientStops(), QDeclarativeTextPrivate::setupTextLayout(), QLabelPrivate::sizeForWidth(), QMacStyle::subControlRect(), QCommonStyle::subElementRect(), QItemDelegate::textRectangle(), QRectF::toAlignedRect(), QDeclarativeListView::trackedPositionChanged(), QDeclarativeTextEdit::updateSize(), QCommonStylePrivate::viewItemSize(), and QPicturePaintEngine::writeCmdLength().
Definition at line 109 of file qmath.h.
Referenced by calcArrow(), QStyleHelper::calcLines(), QStyleHelper::calcRadialPos(), QQuaternion::fromAxisAndAngle(), QLineF::fromPolar(), pathArc(), pathArcSegment(), QMatrix4x4::perspective(), QMatrix4x4::projectedRotate(), qt_t_for_arc_angle(), QAccessibleDial::rect(), QMatrix::rotate(), QTransform::rotate(), QMatrix4x4::rotate(), QTransform::rotateRadians(), and QLineF::setAngle().
Definition at line 274 of file qmath.h.
Referenced by QGL2PaintEngineExPrivate::drawPixmapFragments(), and QTriangulatingStroker::process().
Definition at line 264 of file qmath.h.
Referenced by QGL2PaintEngineExPrivate::drawPixmapFragments(), and QTriangulatingStroker::process().
|
inline |
Definition at line 73 of file qmath.h.
Referenced by addSelectedRegionsToPath(), QFontEngine::alphaMapForGlyph(), alphaMapFromPath(), QSvgAnimateColor::apply(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), QPaintEngine::drawImage(), QRasterPaintEngine::drawImage(), QX11PaintEngine::drawPoints(), QRasterPaintEngine::drawTextItem(), drawTextItemDecoration(), QX11PaintEnginePrivate::fillPolygon_dev(), generateWavyPixmap(), QPrintPreviewWidgetPrivate::layoutPages(), QFontDatabase::loadXlfd(), QDeclarativePaintedItem::paint(), QPdf::patternForBrush(), QDashStroker::processCurrentSubpath(), qDrawEdge(), qSubImage(), qt_curves_for_arc(), qt_find_ellipse_coords(), qt_scale_image_16bit(), qt_scale_image_32bit(), qt_transform_image(), QSvgAnimateTransform::resolveMatrix(), setPenAndDrawBackground(), QRasterPaintEngine::stroke(), QRectF::toAlignedRect(), and QPicturePaintEngine::writeCmdLength().
Definition at line 244 of file qmath.h.
Referenced by QODBCResult::exec(), expblur(), growthFactorBelowPreferredSize(), qt_build_pow_tables(), and qt_sRGB_to_linear_RGB().
Definition at line 93 of file qmath.h.
Referenced by calcArrow(), QStyleHelper::calcLines(), QStyleHelper::calcRadialPos(), QQuaternion::fromAxisAndAngle(), QLineF::fromPolar(), pathArc(), pathArcSegment(), QMatrix4x4::perspective(), QMatrix4x4::projectedRotate(), qt_t_for_arc_angle(), QAccessibleDial::rect(), QMatrix::rotate(), QTransform::rotate(), QMatrix4x4::rotate(), QTransform::rotateRadians(), QLineF::setAngle(), and QQuaternion::slerp().
Definition at line 205 of file qmath.h.
Referenced by addCircle(), QDeclarativeParentChangePrivate::doChange(), QOpenGLPaintEngine::drawPath(), drawTrapezoid(), QToolBarLayout::expandedSize(), RadialFetchPlain::fetch(), QDeclarativeGridViewPrivate::flick(), QDeclarativeListViewPrivate::flick(), QQuaternion::fromAxisAndAngle(), QPrintPreviewWidgetPrivate::layoutPages(), QVector2D::length(), QVector3D::length(), QVector4D::length(), QQuaternion::length(), QLineF::length(), QStyleOptionGraphicsItem::levelOfDetailFromTransform(), QFontEngineFT::loadTransformedGlyphSet(), QMatrix::mapToPolygon(), QAccessibleWidget::navigate(), QVector2D::normalize(), normalize(), QVector3D::normalize(), QVector4D::normalize(), QQuaternion::normalize(), QVector2D::normalized(), QVector3D::normalized(), QVector4D::normalized(), QQuaternion::normalized(), pathArc(), QMatrix4x4::projectedRotate(), qIntSqrtInt(), qt_painterpath_bezier_extrema(), qt_scaleForTransform(), quadraticRoots(), QMdi::RegularTiler::rearrange(), QSmoothedAnimation::recalc(), QMdiAreaPrivate::resizeToMinimumTileSize(), QMatrix4x4::rotate(), QGLEllipseMaskGenerator::screenRect(), soft_light_op(), QBezier::stationaryYPoints(), QTessellator::tessellateRect(), QDeclarativeParentAnimation::transition(), QLineF::unitVector(), and QOpenGLPaintEnginePrivate::updateGradient().
Definition at line 125 of file qmath.h.
Referenced by parseTransformationMatrix(), and QSvgAnimateTransform::resolveMatrix().
Q_CORE_EXPORT const qreal qt_sine_table[QT_SINE_TABLE_SIZE] |