#include "qtcolortriangle.h"
#include <QEvent>
#include <QMap>
#include <QVarLengthArray>
#include <QConicalGradient>
#include <QFrame>
#include <QImage>
#include <QKeyEvent>
#include <QLayout>
#include <QMouseEvent>
#include <QPainter>
#include <QPainterPath>
#include <QPixmap>
#include <QResizeEvent>
#include <QToolTip>
#include <QVBoxLayout>
#include <math.h>
Go to the source code of this file.
Functions | |
double | qsqr (double a) |
double | vlen (double x, double y) |
double | vprod (double x1, double y1, double x2, double y2) |
bool | angleBetweenAngles (double p, double a1, double a2) |
Variables | |
const double | PI = 3.14159265358979323846264338327950288419717 |
const double | TWOPI = 2.0*PI |
bool angleBetweenAngles | ( | double | p, |
double | a1, | ||
double | a2 | ||
) |
Returns true if the point cos(p),sin(p) is on the arc between cos(a1),sin(a1) and cos(a2),sin(a2); otherwise returns false.
Definition at line 935 of file qtcolortriangle.cpp.
double qsqr | ( | double | a | ) | [inline] |
double vlen | ( | double | x, |
double | y | ||
) | [inline] |
Returns the length of the vector (x,y).
Definition at line 916 of file qtcolortriangle.cpp.
References qsqr().
double vprod | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) | [inline] |
Returns the vector product of (x1,y1) and (x2,y2).
Definition at line 925 of file qtcolortriangle.cpp.
const double PI = 3.14159265358979323846264338327950288419717 |
Definition at line 98 of file qtcolortriangle.cpp.
Referenced by angleBetweenAngles(), QtColorTriangle::mouseMoveEvent(), QtColorTriangle::mousePressEvent(), and QtColorTriangle::setColor().
Definition at line 99 of file qtcolortriangle.cpp.
Referenced by angleBetweenAngles(), QtColorTriangle::mouseMoveEvent(), QtColorTriangle::mousePressEvent(), and QtColorTriangle::setColor().