touchgfx::CWRUtil::cosine() method
@fn static Q15 cosine(int i) Find the value of cos(i) with 15 bits precision. Find the value of cos(i) with 15 bits precision using the fact that cos(i)=sin(90- i). @see sine()
static Q15 cosine(int i); Arguments
i
the angle in degrees. The angle follows the angles of the clock, 0 being straight up and 90 being 3 o'clock.
Return value
the value of cos(i) with 15 bits precision on the fractional part.
Examples
touchgfx::CWRUtil::cosine() is referenced by
3 libraries and example projects.
Functions called by touchgfx::CWRUtil::cosine()
touchgfx::CWRUtil::cosine()
touchgfx::CWRUtil::Q5::~Q5() all items filtered out
Data read by touchgfx::CWRUtil::cosine()
touchgfx::CWRUtil::cosine()
Type of touchgfx::CWRUtil::cosine()
touchgfx::CWRUtil::cosine()