Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_fixed_point_maths.h File Reference
#include <boost/operators.hpp>
#include <QDataStream>

Go to the source code of this file.

Classes

class  KisFixedPoint
 

Functions

KisFixedPoint operator- (KisFixedPoint x)
 
QDebug operator<< (QDebug dbg, const KisFixedPoint &v)
 

Function Documentation

◆ operator-()

KisFixedPoint operator- ( KisFixedPoint x)
inline

Definition at line 124 of file kis_fixed_point_maths.h.

124 {
125 x.d = -x.d;
126 return x;
127}

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KisFixedPoint & v )

Definition at line 129 of file kis_fixed_point_maths.h.

129 {
130 dbg.nospace() << v.toFloat() << " (d = " << v.d << ")";
131 return dbg.space();
132}
qreal v