1al_fixhypot(3) al_fixhypot(3)
23
4
NAME
6al_fixhypot - Allegro 5 API
7
SYNOPSIS
9#include <allegro5/allegro.h>
1011
al_fixed al_fixhypot(al_fixed x, al_fixed y)
12
DESCRIPTION
14Fixed point hypotenuse (returns the square root of x*x + y*y). This
15should be better than calculating the formula yourself manually, since
16the error is much smaller.
1718
19
20
Allegro reference manual al_fixhypot(3)