[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Functions | Variables
qtcolortriangle.cpp File Reference
#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>
Include dependency graph for qtcolortriangle.cpp:

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
 

Function Documentation

◆ angleBetweenAngles()

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.

References PI, and TWOPI.

◆ qsqr()

double qsqr ( double  a)
inline

Returns a * a.

Definition at line 907 of file qtcolortriangle.cpp.

Referenced by vlen().

◆ vlen()

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().

◆ vprod()

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.

Variable Documentation

◆ PI

const double PI = 3.14159265358979323846264338327950288419717

◆ TWOPI

const double TWOPI = 2.0*PI

Generated by doxygen 1.8.13