Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_vec.h File Reference
#include <QPoint>
#include <Eigen/Core>
#include <QVector2D>

Go to the source code of this file.

Typedefs

typedef Eigen::Matrix< qreal, 2, 1 > KisVector2D
 

Functions

KisVector2D toKisVector2D (const QPoint &p)
 
KisVector2D toKisVector2D (const QPointF &p)
 
template<typename ExpressionType >
QPointF toQPointF (const ExpressionType &expr)
 

Typedef Documentation

◆ KisVector2D

typedef Eigen::Matrix<qreal, 2, 1> KisVector2D

Definition at line 17 of file kis_vec.h.

Function Documentation

◆ toKisVector2D() [1/2]

KisVector2D toKisVector2D ( const QPoint & p)
inline

Definition at line 23 of file kis_vec.h.

24{
25 return KisVector2D(p.x(), p.y());
26}
const Params2D p
Eigen::Matrix< qreal, 2, 1 > KisVector2D
Definition kis_vec.h:17

References p.

◆ toKisVector2D() [2/2]

KisVector2D toKisVector2D ( const QPointF & p)
inline

Definition at line 19 of file kis_vec.h.

20{
21 return KisVector2D(p.x(), p.y());
22}

References p.

◆ toQPointF()

template<typename ExpressionType >
QPointF toQPointF ( const ExpressionType & expr)
inline

Definition at line 29 of file kis_vec.h.

30{
31 return QPointF(expr.x(), expr.y());
32}