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
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...
Variables of touchgfx::CWRUtil::Q10 type
touchgfx::CWRUtil::_angle()::dy all items filtered out
touchgfx::CWRUtil::Q10
Allocators of touchgfx::CWRUtil::Q10
Deletors of touchgfx::CWRUtil::Q10
touchgfx::CWRUtil::_angle()::dy all items filtered out
touchgfx::CWRUtil::Q10
touchgfx::CWRUtil::_angle()::dy all items filtered out