touchgfx::CWRUtil::Q10 is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::CWRUtil::Q10 class

@class Q10 CWRUtil.hpp touchgfx/widgets/canvas/CWRUtil.hpp Defines a number with 10 bits reserved for fraction. Defines a number with 10 bits reserved for the fractional part of the decimal number. Q10 implements some simple arithmetic operations, most yielding a Q10 number and some yielding a Q5 number or a Q15 number as a result. Q5*Q5=Q10, Q10/Q5=Q5, ... @see Q5 @see Q15 @see http://en.wikipedia.org/wiki/Q_%28number_format%29 @see http://en.wikipedia.org/wiki/Fixed-point_arithmetic

Syntax

class Q10;
Implemented in CWRUtil.hpp:287

Fields

v

No summary provided. Read more...

Methods

operator-() const

@fn Q10 Q10::operator-() const Negation operator. Negation operator. Read more...

operator+() const

@fn Q10 Q10::operator+(const Q10& q10) const Addition operator. Addition operator. Read more...

operator*() const

@fn Q15 Q10::operator*(const Q5& q5) const Multiplication operator. Multiplication operator. The result is a Q15, not a Q10, for increased precision. Read more...

operator/() const

@fn Q5 Q10::operator/(const Q5& q5) const Division operator. Division operator. Read more...