<QtCore/qmath.h> - Math Functions

< QtCore /qmath.h> header provides various math functions. 更多...

    函数

    qreal qAcos (qreal v )
    qreal qAsin (qreal v )
    qreal qAtan2 (qreal y , qreal x )
    qreal qAtan (qreal v )
    int qCeil (qreal v )
    qreal qCos (qreal v )
    qreal qExp (qreal v )
    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 )

    函数文档编制

    qreal qAcos ( qreal v )

    Returns the arccosine of v as an angle in radians. Arccosine is the inverse operation of cosine.

    另请参阅 qAtan (), qAsin (),和 qCos ().

    qreal qAsin ( qreal v )

    Returns the arcsine of v as an angle in radians. Arcsine is the inverse operation of sine.

    另请参阅 qSin (), qAtan (),和 qAcos ().

    qreal qAtan2 ( qreal y , qreal x )

    Returns the arctangent of a point specified by the coordinates y and x . This function will return the angle (argument) of that point.

    另请参阅 qAtan ().

    qreal qAtan ( qreal v )

    Returns the arctangent of v as an angle in radians. Arctangent is the inverse operation of tangent.

    另请参阅 qTan (), qAcos (),和 qAsin ().

    int qCeil ( qreal v )

    Return the ceiling of the value v .

    The ceiling is the smallest integer that is not less than v . For example, if v is 41.2, then the ceiling is 42.

    另请参阅 qFloor ().

    qreal qCos ( qreal v )

    Returns the cosine of an angle v in radians.

    另请参阅 qSin () 和 qTan ().

    qreal qExp ( qreal v )

    Returns the exponential function of e to the power of v .

    另请参阅 qLn ().

    int qFloor ( qreal v )

    Return the floor of the value v .

    The floor is the largest integer that is not greater than v . For example, if v is 41.2, then the floor is 41.

    另请参阅 qCeil ().

    qreal qLn ( qreal v )

    Returns the natural logarithm of v . Natural logarithm uses base e.

    另请参阅 qExp ().

    qreal qPow ( qreal x , qreal y )

    返回值为 x raised to the power of y . That is, x is the base and y is the exponent.

    另请参阅 qSqrt ().

    qreal qSin ( qreal v )

    Returns the sine of the angle v in radians.

    另请参阅 qCos () 和 qTan ().

    qreal qSqrt ( qreal v )

    Returns the square root of v . This function returns a NaN if v is a negative number.

    另请参阅 qPow ().

    qreal qTan ( qreal v )

    Returns the tangent of an angle v in radians.

    另请参阅 qSin () 和 qCos ().