Krita Source Code Documentation
Loading...
Searching...
No Matches
KoCreatePathTool_p.h File Reference
#include <QPainterPath>
#include "KoCreatePathTool.h"
#include "KoPathPoint.h"
#include "KoPathPointData.h"
#include "KoPathPointMergeCommand.h"
#include "KoParameterShape.h"
#include "KoShapeManager.h"
#include "KoSnapStrategy.h"
#include "KoToolBase_p.h"
#include <KoViewConverter.h>
#include "kis_config.h"
#include "math.h"

Go to the source code of this file.

Classes

class  AngleSnapStrategy
 
class  KoCreatePathToolPrivate
 
struct  PathConnectionPoint
 Small helper to keep track of a path point and its parent path shape. More...
 

Functions

qreal squareDistance (const QPointF &p1, const QPointF &p2)
 

Function Documentation

◆ squareDistance()

qreal squareDistance ( const QPointF & p1,
const QPointF & p2 )
inline

Definition at line 91 of file KoCreatePathTool_p.h.

92{
93 qreal dx = p1.x() - p2.x();
94 qreal dy = p1.y() - p2.y();
95 return dx * dx + dy * dy;
96}
QPointF p2
QPointF p1

References p1, and p2.