al_fixatan2 man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

al_fixatan2(3)							al_fixatan2(3)

       al_fixatan2 - Allegro 5 API

	      #include <allegro5/allegro.h>

	      al_fixed al_fixatan2(al_fixed y, al_fixed x)

       This is a fixed point version of the libc atan2() routine.  It computes
       the arc tangent of y / x, but the signs of both arguments are  used  to
       determine  the  quadrant	 of the result, and x is permitted to be zero.
       This function is useful to convert Cartesian coordinates to polar coor‐


		  al_fixed result;

		  /* Sets `result' to binary angle 64. */
		  result = al_fixatan2(al_itofix(1), 0);

		  /* Sets `result' to binary angle -109. */
		  result = al_fixatan2(al_itofix(-1), al_itofix(-2));

		  /* Fails the assert. */
		  result = al_fixatan2(0, 0);

       Returns	the  arc  tangent of y / x in fixed point binary format angle,
       from -128 to 128.  If both x and y are  zero,  returns  zero  and  sets
       Allegro's errno to EDOM.

Allegro reference manual					al_fixatan2(3)

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net