Pencil2D Animation
Download
Community
News
Docs
Contribute
API Documentation
5eeebd3c7472c3c2e6618ff9a94eca7af8af593e
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Properties
Pages
core_lib
src
util
mathutils.h
1
#ifndef MATHUTILS_H
2
#define MATHUTILS_H
3
4
#include <QtMath>
5
#include <QPoint>
6
7
namespace
MathUtils
8
{
15
inline
qreal getDifferenceAngle(
const
QPointF
a,
const
QPointF
b)
16
{
17
return
qAtan2(b.
y
() - a.
y
(), b.
x
() - a.
x
());
18
}
19
}
20
21
#endif // MATHUTILS_H
QPointF
QPointF::x
qreal x() const const
QPointF::y
qreal y() const const
Generated on Sun Dec 20 2020 16:19:59 for Pencil2D by
1.8.6