java.lang.Object
io.qt.core.QtMath
File provides various math functions
Java wrapper for Qt namespace QtMath
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
qAcos
(double v) SeeqAcos(qreal)
static double
qAsin
(double v) SeeqAsin(qreal)
static double
qAtan
(double v) SeeqAtan(qreal)
static double
qAtan2
(double y, double x) static int
qCeil
(double v) SeeqCeil(qreal)
static double
qCos
(double v) SeeqCos(qreal)
static double
qDegreesToRadians
(double degrees) static float
qDegreesToRadians
(float degrees) static double
qExp
(double v) SeeqExp(qreal)
static double
qFabs
(double v) SeeqFabs(qreal)
static double
qFastCos
(double x) SeeqFastCos(qreal)
static double
qFastSin
(double x) SeeqFastSin(qreal)
static int
qFloor
(double v) SeeqFloor(qreal)
static double
qLn
(double v) SeeqLn(qreal)
static int
qNextPowerOfTwo
(int v) static long
qNextPowerOfTwo
(long v) static double
qPow
(double x, double y) static double
qRadiansToDegrees
(double radians) static float
qRadiansToDegrees
(float radians) static double
qSin
(double v) SeeqSin(qreal)
static double
qSqrt
(double v) SeeqSqrt(qreal)
static double
qTan
(double v) SeeqTan(qreal)
-
Method Details
-
qAcos
public static double qAcos(double v) See
qAcos(qreal)
- Parameters:
v
-- Returns:
-
qAsin
public static double qAsin(double v) See
qAsin(qreal)
- Parameters:
v
-- Returns:
-
qAtan
public static double qAtan(double v) See
qAtan(qreal)
- Parameters:
v
-- Returns:
-
qAtan2
public static double qAtan2(double y, double x) - Parameters:
y
-x
-- Returns:
-
qCeil
public static int qCeil(double v) See
qCeil(qreal)
- Parameters:
v
-- Returns:
-
qCos
public static double qCos(double v) See
qCos(qreal)
- Parameters:
v
-- Returns:
-
qDegreesToRadians
public static double qDegreesToRadians(double degrees) - Parameters:
degrees
-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
qDegreesToRadians
public static float qDegreesToRadians(float degrees) - Parameters:
degrees
-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
qExp
public static double qExp(double v) See
qExp(qreal)
- Parameters:
v
-- Returns:
-
qFabs
public static double qFabs(double v) See
qFabs(qreal)
- Parameters:
v
-- Returns:
-
qFastCos
public static double qFastCos(double x) See
qFastCos(qreal)
- Parameters:
x
-- Returns:
-
qFastSin
public static double qFastSin(double x) See
qFastSin(qreal)
- Parameters:
x
-- Returns:
-
qFloor
public static int qFloor(double v) See
qFloor(qreal)
- Parameters:
v
-- Returns:
-
qLn
public static double qLn(double v) See
qLn(qreal)
- Parameters:
v
-- Returns:
-
qNextPowerOfTwo
public static int qNextPowerOfTwo(int v) - Parameters:
v
-- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
qNextPowerOfTwo
public static long qNextPowerOfTwo(long v) - Parameters:
v
-- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
qPow
public static double qPow(double x, double y) - Parameters:
x
-y
-- Returns:
-
qRadiansToDegrees
public static double qRadiansToDegrees(double radians) - Parameters:
radians
-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
qRadiansToDegrees
public static float qRadiansToDegrees(float radians) - Parameters:
radians
-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
qSin
public static double qSin(double v) See
qSin(qreal)
- Parameters:
v
-- Returns:
-
qSqrt
public static double qSqrt(double v) See
qSqrt(qreal)
- Parameters:
v
-- Returns:
-
qTan
public static double qTan(double v) See
qTan(qreal)
- Parameters:
v
-- Returns:
-