---
name: "al_fixhypot"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_fixhypot/3alleg5"
---

# al\_fixhypot(3alleg5)

Allegro 5 API

## NAME

al\_fixhypot - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  al_fixed al_fixhypot(al_fixed x, al_fixed y)
  ```

## DESCRIPTION

Fixed point hypotenuse (returns the square root of `x*x + y*y`). This should be better than calculating the formula yourself manually, since the error is much smaller.
